private static int CharType(string s) { const string g1 = " \t"; const string g2 = ".,-+'?´=)(/&%¤#!\"\\<>[]$£@*:;{}"; if (g1.IndexOf(s) >= 0) return 1; if (g2.IndexOf(s) >= 0) return 2; return 3; }