remove trailing ws