fixed bug to send a string on response.write