I use the following routines in some mass rename scripts I wrote in Ruby
These routines implement "title case" per the Modern Language Association (full details in code comments). If you're not familiar with Ruby, I can help explain the code.
So for example, one could convert:
archers of loaf - all the nation's airports
Archers of Loaf - All the Nation's Airports
Archers Of Loaf - All The Nation's Airports
Thank you for the great product!