Try string.Equals(str1, str2, StringComparison.OrdinalIgnoreCase)
string.Equals(str1, str2, StringComparison.OrdinalIgnoreCase)