remove redundant \n