rem: while (s.substring(0, 1) == " ") s = s.substring(1); while (s.length > 0 && s.substring(s.length - 1, 1) == " ") s = s.substring(0, s.length - 2); 
add: while (s.substr(0, 1) == " ") s = s.substr(1); while (s.length > 0 && s.substr(s.length - 1, 1) == " ") s = s.substr(0, s.length - 2); 
context: function normalize(s) {    while (s.indexOf("\n") > -1)        s = s.replace("\n", ' ');    while (s.indexOf("\t") > -1)        s = s.replace("\t", ' ');    while (s.indexOf('  ') > -1)        s = s.replace('  ', ' ');    // TODO leading, trailing space? seems to work for leading, not trailing    while (s.substring(0, 1) == " ")        s = s.substring(1);    while (s.length > 0 && s.substring(s.length - 1, 1) == " ")        s = s.substring(0, s.length - 2);    return s;}
meta: 952	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/acaf2f3cc32a6781b1b116b2d37f39fc2d4472e2/cq.js/clean/cq.js