Changed logs
Added titleCase function