helper to render string in response.