remove trailing whitespace.