permutation problem solved, replace string added