delete trailing whitespaces