Get string permutation