capitalize function

capitalize the first letter of a string