You can simply change the case of both fields to uppercase:
String stringToCompare = "Some String";
string.ToUpper().Contains(stringToCompare.ToUpper())
This will make the case insensitive, converting the entire case to uppercase. Of course, ToLower () will also work.
source
share