strip all trailing whitespaces