trim data add, edit