Generate k combinations of a given string