strip trailing whitespace in util/