trim editable text