Now getting groups recursively

Now getting groups recursively for strings with no dupes