public static int CountDistinctLetters(string str) { return(str.Where(x => Letters.IsMatch(x.ToString())).Distinct().Count()); }