allow to pass a custom divider that is used to join grouped lines