How do I check if a message contains certain word(s) and return those certain words
For example 1,
Certain words: hi, boo, man, go
Message : hi, I am saia
It will return hi
as it contains that word
For example 2,
Certain words: hi, boo, man, go
Message : hello, I am boo man
It will return boo
and man
as it contains those words