remove leading/trailing whitespace.  issue where trailing newline appears to be added in request response body