Remove trailing whitespace/unneeded linebreaks