I'm trying to eliminate having to put in double entries for every possible answer, one without a trailing space and one with.
Whatever is entered into the textentry box, I want it converted to all CAPS and then I want all leading and trailing spaces removed. Acceptable answers would be:
Here is my code, I've tried adding it to the textentry loses focus event and to the presses submit button event.
var p = GetPlayer();
var textentry = p.GetVar("TextEntry");
var newtextentry = textentry.toUpperCase();
Nothing seems to be triggering at all. I should be able to type in "i am " with a bunch of extra spaces and it changes to "I AM" with no extra spaces.