Remove first letters that have an overlapping prefix.