check system return value
try all permutations of each generated string