remove spurious \n in tree