Use numbers in permutations instead of strings