New toString method for Text class.