Changed print_tree to tree_to_string.