Added method toTitleCase()