public static bool IsEqualToString(this string text, string text2) { if (text == null || text2 == null) return false; return text.Equals(text2); }