Ruby script of Title Case exercise