extracted splitting pattern out of functions
created SetTraverseObject (this function traverses the object and sets the value)