write tree fragment string, not pointer