added a functionality where word predict ignores punctuations like ,.! in the sentence