Trim the value of the field before validating it.