m-x delete-trailing-whitespace