Let me show you. Consider you have a character `A` and `B` that should be changed to `a` and `b` finally. So, finding array and replacing array should be like this:

     var findArr = ['A', 'B'];
     var replaceArr = ['a', 'b'];

Not:

     var findArr = ['A', 'B'];
     var replaceArr = ['b', 'a']; //this array is incorrect because it will replace char `A` to `b` and `B` to `a`!

You have some incorrection like that in the number arrays (finding and replacing array)
Hope this is clear enough.