Remove all str[pos] character look ups with str.charAt(pos) for older IE