remove trailing whitespace (except in license)