Format class data into text strings.