public static bool EndsWithIgnoreCase(this string str, string valueToCheck) { var endsWith = str.EndsWith(valueToCheck, StringComparison.OrdinalIgnoreCase); return endsWith; }