Update #toString to handle tags properly.