use sub instead of delete, since they diff

Delete actually delete every intersecting character and
not *only* the matching string.