drop final whitespaces