cleanup: remove trailing whitespace and semicolons