The last also needed logic to be able to apply multicharacter replace