replace internal references to stringToObj