in reply to converting a String to Hashtable

That looks very much like JSON, so use JSON;