public static bool IsAscii(string data) { foreach(char c in data){ if((int)c > 127){ return false; } } return true; }