tweaks to title case function and tests