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.

Related validators

The following validators might be useful to you.