end response after writing string data