do not need explicit base case for permutString