I could write my own algorithm to do it, but I feel there should be the equivalent to ruby\'s humanize in C#.
I googled it but only found ways to humanize dates.
Use regular expressions for this looks much cleaner:
string s = "the quick brown fox jumps over the lazy dog"; s = Regex.Replace(s, @"(^\w)|(\s\w)", m => m.Value.ToUpper());