remove new line at the end