Removing extraneous newlines