whoa.  This definitely shouldn't be needed - you should be able to parse the string in-memory.