You may be able to trim the string right now, the query processor will update the data from the input fields in the form. This has not been tested, but what happens when you change setterSizeDisplayName (String displayName) to something like
public void setDisplayName(String displayName) { this.displayName = displayName.trim(); }
This is not a good solution because it transfers logic to the setter.
considers
source share