improved group attack tostring function