function findLongestWord(str) {
//This is what I used to find how many characters were in the largest word
return str
.replace(/[^\w ]/g,'')
.split(' ')
.sort(function(a, b) {return a.length-b.length;})
.pop().length;
}
findLongestWord('The quick brown fox jumped over the lazy dog');