remove trailing gt