At present my NPCs listen to local chat, and for instance if i ask them about 'tours' or 'people' they give some information, like this:
else if (cmd1 == "tours")
{
osNpcSay(uNPC, "info about tours.");
else if (cmd1 == "people")
{
osNpcSay(uNPC, "info about people.");
But this only works if i ONLY ask for instance 'tours' and nothing else... Now, what id like, is to rather check if the most RIGHT written word is (in this case) 'tours', so i would get the response also if writing something like 'tell me about tours', 'give me info about tours', 'blabla bla tours'.. I'm sure you get it

I look here https://wiki.secondlife.com/wiki/Right but i dont understand how to implement that in the code above... any help or suggestions of other solutions is very appretiated.
Have a nice day!
Jojo