public static bool isAscii(string self) { int len = self.Length; for (int i=0; i<len; ++i) if (self[i] >= 128) return false; return true; }