format group texts correctly