I've successfully followed the steps outlined at Convert string to Title Case with JavaScript however was wondering if there as a way for me to ensure certain words remain lowercase?
For example "THE university Of Maastricht" should become "The University of Maastricht" and "The queen Of The nile" should become "The Queen of the Nile".
This would mean excluding words which match "of" and "the" (in any capitalisation combination) except if they are the first word?