Bug in determining word length
Exception if no words matched