String handling fails if the string contains characters used in an object or arrau

I've added a test to highlight a bug in string handling.

Retrieving a string containing the characters "{", "}", "[", "]", or ":" throws an exception as the code attempts to treat it as an object as fails to parse it as it is not valid JSON.