Program Now Breaks Up and Counts Input Substrings

Program Now Breaks Up and Counts Input Substrings. There is an issue
though. The program seems to think certain substrings are different
from other substrings that should match. I could not ring the source of
this error. This is done between lines 150 and 178.