Strip trailing whitespace from commit messages