fixed titleize function