Trimming a value

The notEmpty validator does not remove the blank spaces at the beginning and ending of the value. It means that a string like ' ' is treated as valid.
If you want to prevent this, then use the Transformer plugin to trim the value before validating it.
Trimming a value