deletes trailing whitespace