Trim trailing whitespace.