finished. Would like to optimize the titleize method