add getTreeFromString for TreeNode string representations