Fix for uppercase words in title and pascal case. Also, two utility functions for determining whether a particular string is all uppercase or lowercase.