public static bool IsAscii(this string value) { if (!string.IsNullOrEmpty(value)) { foreach (char c in value) { if (c > 127) { return false; } } } return true; }