trim and form