Given a string in dotnotation and an object it returns the portion of the object specifed by the dotnotation