trim edit input value, delete if empty