Fix global reference to toTitleCase