correct tree string out put with ;, at the end