Create Longest Word

The main issue I've had with getting this problem to work are the symbols, and by that I mean exclamation points!!! 
This is the reason I've added the extra lines from 13 to 15, to get rid of the extra exclamation points. It still leaves one last "!" even with those lines, and I can't figure out why...