trim and tab