The contains function will also return true when the word is part of another word. So “swords” or “wordsmith” will also return true. If you want to check for complete words you could use the word boundary. Something like
Replace needle with the word you’re looking for.
Why not use the “contains” function? This will do exactly as you want to and check whether the word “word” is in your string.
The IsMatch function will check if they are a exact match.
Check the below link of IsMatch Mendix Documentation
As Roy mentioned, you can also try contains function
Hope it helps!!!