public static IEnumerable<string> TrimAll(this IEnumerable<string> strings) { foreach (string s in strings) { yield return s.TrimAll (); } }