Move text appending logic to document tree constructor