trimed trailing \n