Case question?

okay i know that flash can do a case with numbers
case 1 :
but is there a way to make it so when i type in a box and hit enter it checks for text. like
case hello :
(or do i have to do something with the switch part) i know that doesnt work but please help me becuase i can keep writing if statements if theres another way k thanks.