Strip some tokens when getting line