remove tailing new line