remove trailing whitespace and tabs