String Equals() method fails even though the two strings are same in C#?
In my case, the difference was different encoding of space character, one string contained non-breaking space (160) and the other one contained normal space (32)
it can be solved by
string text1 = "String with non breaking spaces.";
text1 = Regex.Replace(text1, @"\u00A0", " ");
// now you can compare them
Try this
String.Equals(currInnerText, paraText, StringComparison.InvariantCultureIgnoreCase);