Thank you for your help through out!
I am having problem in comparing two string which are like that Str1: "bhavinpatel" and Str2: "bhavin patel"! The difference is only space between those string and I am not able to figure out what should I do?
Re: String comaprison with space and nonspace Sting?
A second option would be to use the replace function on the string and replace all the spaces with empty string. Then you can compare both strings. This way you can have as many spaces, plus it cuts down on code.