become case insensitive for groupings + take ' into account