titleCase()
Capitalizes the first letter of each word in a string. Also commonly known as toProperCase()
.
true
if the word should be title cased, otherwise false
should be returned.str
with all of the 1st letter of each word capitalized (unless filtered out by opt_fnFilter
).