replacing placeholders