Add Tree helper to generate tree from string