Newick functions