How can I get the exact entered text and make decisions on that

Hi, I’m new to RASA, I need to have an “Intent” (or something I can use on stories file to trigger an action) that allows me to do the following:

If the user enters “11” or “12”, or “11 12”, is an intent, when “21” or “22”, antother intent, if “31”, “32”, “33” or “34”, another intent, etc. I tried training the numbers as intent examples but it seems that the classifier can’t tell a 12 from a 21 and always go to the intent with most examples. There is a way to say “if the input contains ‘11’ or ‘12’ then is intent_1”? or another way to have a story based on those inputs?

Thanks in advice.