public static string UppercaseFirst([NotNull] this string s) { if (s == null) throw new ArgumentNullException("s"); if (string.IsNullOrEmpty(s)) { return string.Empty; } char[] a = s.ToCharArray(); a[0] = char.ToUpper(a[0]); return new string(a); }