Update stringReduction.js