I have a string say "my name is john". Now I want to convert this string to "My Name Is John". how would I do that? I am using C# language. I am new to C# and don't have much idea on string manipulation.
I have tried this code
string functionName = "my name is john";
var dam = Char.ToUpperInvariant(functionName[0]) + functionName.Substring(1);
the output is "My name is john". I want "My Name Is John".