using static System.Globalization.CultureInfo; var str = CurrentCulture.TextInfo.ToTitleCase(sortColumn.ToLower().Trim());