delete trailing whitespace