public static bool ContainsIgnoreCase(this string str, string valueToCheck) { var index = IndexOfIgnoreCase(str, valueToCheck); return index >= 0; }