Lets start with one example here.
var stringVariable = "mystring";
We can find the character and Capitalize the string as shown here.
var stringVariable = stringVariable.charAt(0).
toUpperCase() + stringVariable.slice(1);