remove \n charactors in Writer's return string