replacing placeholders with variables in response_body