fix for HW3, wasnt cleaning up the strings in the tree