Is there a way to tell if the data a user types into a native.newTextField is lowercase or capital

If a user types into a textfield I want to compare it with a predefined code.  The problem is, say the code is “CORONA”,  if the user types in “corona” it will not match.  The user has to type in “CORONA”.  Is there a way to get a user who types in lowercase “corona” to match with the pre-defined uppercase code?

Or is there a way to make whatever is typed into a textfield all capital?

Convert both the code and the textfield string to lowercase via string.lower for a match? Or to be more forgiving, allow a partial string match in case someone types in "CORONA " with a trailing space…

Awesome thank you!

Convert both the code and the textfield string to lowercase via string.lower for a match? Or to be more forgiving, allow a partial string match in case someone types in "CORONA " with a trailing space…

Awesome thank you!