strip trailing whitespace from structure dump file