in my api system when the result is showed in plaintext, it looks like: 
`"the result\n"`

i need to remove those `" \n"` and the result should contain just `the result`.

i set `header('Content-type: text/plain');` for the result.

btw. my system is in PHP

UPDATE:

when i open the url in the browser it gives me `the result` but when i test the request with <http://hurl.it> the result is `"the result\n"`

i tried with `trim` and `rtrim` but didn't help