remove tab from the end