remove trailing tab