Fixes #1224 Edit reason should be trim()'d