remove ending newline