Clean trailing whitespace etc