delete sorted prefix string