You can use java.lang.String.contains() method .
You have string strMain so you can check secuence of substrings and can compare those sub strings with your dynamic result like
String strCountry = "India";
boolean Finalstr = strMain.contains("+strCountry+");
Because this method return true or false so by Finalstr you can varify dynamic string contains that India or same as other countries or not.
I hope it would help you.