when text contained markup data, unprocessed string was being printed before all the markup had been processed. This caused a repetition bug.