remove trailing WS