more work on createNewObj
Added a disgusting looking func to split node into key and str.  Will refactor later