Do you have any ON event that grabs any text
on *:TEXT:*:#:{

If so then you need to put the code you requested above that one, because it will trigger on any text and stop any ON TEXT that is below it from triggering.