I am writing a piece of code in which i have to find only complete words for example if i have
String str = \"today is tuesday\";
and I\'m
I would recommend you use the "split" functionality for String with spaces as separators, then go through these elements one by one and make a direct comparison.