If the text
variable behind the text box ist "t1", you may use
disadvantage here is in cases where the user has entered Space
characters only, the "if text[t1]" will be considered "true".
You can avoid this by copying the text variable into a normal