strip trailing ws