Optimised how we handle accumulating text elements.