removes extra newline