Parsing and printing of Newick format