finished makeTreeFromText