Blocking the <li> tag in flash...help!

Ok this is so much easier than it sounds. For some reason, I never know the easy stuff. I have 1 variabled called input. It’s an input textbox. I also have a button. How would I make it when the button is pressed, if the textbox contains the word(s) <li> or </li> in it, the variable shows, “Denied”?