add string support for groupby
distinct key word added