Backbone input value trimming on edit

This solution will trigger change event only if anything changes in edited input.
We need this event to rerender input with trimmed value and keep an event intact.