add temp var for this.arr.length,`for (var i = 0, ii = stringBuffer.length; i < ii; i++)`