titlecase

Extension function to convert a string to title case.

Words in the WORDS_NOT_TO_CAPITALIZE set will remain in lowercase unless they are the first word.

Receiver

The string to be converted to title case.

Return

The string in title case.