setlib: nextPermutation() works for tuples and strings