Working version to up to one letter strings
Method that generates the permutations of a string has been implemented