I would not recommend upper-casing or lower-casing as others have suggested. That can cause issues in some cultures, particularly Turkish. Instead, use String.Equals(String, StringComparison)
:
If COMMAND_TEXT.Text.Equals("command", StringComparison.CurrentCultureIgnoreCase)
You may want to use InvariantCultureIgnoreCase
or OrdinalIgnoreCase
- it depends on the context.
I'd also strongly advise you to avoid shouty names like COMMAND_TEXT
and use more conventional names instead.