capitalize function

Capitalize initial characters in strings of text x.