Form: Fixes values to be trimmed when validating, #488