I need to perform a keyword search in a string. Similar to the below: If the Keyword is cancel, then the match should be true if the string is "Cancel the flight" and the match should be false if the string is "Cancelling the flight".
Also the keyword can be two words as well. For example: Booking code.
I tried the string methods like contains, equals etc. But they do not work.