Have XSSF rich test strings report if they have formatting applied or not, and fix them to only add the formatting child element when needed