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

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