so basically if i want to transform a name from
stephen smith
to
Stephen Smith
i can easily do it with c
I use single line:
string.Join(" ", str.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).Select(c => c.Substring(0, 1).ToUpper() + c.Substring(1).ToLower()));