format text in table