auto conversion of string to lambda for grouping key argument