removes extraneous newline