add string permutations not working