Add an optional callback to titlecase

There are times when an application may want more control over how certain words are title-cased. Specifically, in my case, I have several titles in all caps and want to retain the capitalization of certain abbreviations. I figured the most generic way to handle something like this would be to introduce a callback function that had the first chance to take action on each word.