If the AppEnum text used to serialize the AppEnum contains whitespace at start or end, the serialization will fail and the AppEnum value will end up with a default value.
This commit will make sure that this field is always trimmed ( text coming from the application, from xml parsing, text from scripting).