Transforms into uppercase the first character of all words contained in a string, where a word is a group of characters delimited by spaces, line breaks, tabulators, punctuation marks, quotes, parentheses, etc.
text = " The PEN is mightier than the sword"
text = text.Capitalize()
// text is "The Pen Is Mightier Than The Sword"
Notice that the Capitalize method acts on all characters of a word, not just on the first character.