Prevent collisions when replacing placeholders with data (feature #6)