Replacing placeholders with actual values