rebind enter to trim whitespace and save file