rem: var left = str.substr (0, (length)); var right = hyphenateWord(str.substr (length), length, hyphen); 
add: /* search for a nice place to break the word, fuzzfactor of +/-5, centered * around |pos| */ var splitPos = str.substring(pos - 5, pos + 5).search(/[^A-Za-z0-9]/);  splitPos = (splitPos != -1) ? pos - 4 + splitPos : pos; var left = str.substr (0, splitPos); var right = hyphenateWord(str.substr (splitPos), pos, hyphen); 
context: function hyphenateWord (str, length, hyphen){    if (typeof hyphen == "undefined")        hyphen = " ";        if (str.length <= length)        return str;    var left = str.substr (0, (length));    var right = hyphenateWord(str.substr (length), length, hyphen);    return left + hyphen + right;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/ee3e25cd866563b5083f4eb42f44f9b25afaeeda/utils.js/clean/extensions/irc/js/lib/utils.js