using System; using System.Collections.Generic; using System.Text; namespace MatrixDotNetLib { public class MatrixUtil { /// /// Returns string with first letter capitalized /// /// /// public string UpperFirst(string s) { // Check for empty string. if (string.IsNullOrEmpty(s)) { return string.Empty; } // Return char and concat substring. return char.ToUpper(s[0]) + s.Substring(1); } } }