capitalize a string, or all words in a string, or all items in an array