Move titleCase method to utils class