Fixed bug in string matching and new word adding sections.