Trim spaces outside of quotes when parsing string

Trim spaces outside of quotes when parsing JSON to a string