Adding string truncation and string permutations