formatting of AppendChat