History: remove trailing whitespace