Copied changes from part 2
Removed unused titlecase utility function