Fixed ArrayIndexOutofBound Exception, which was coming when we give input text which contains too many (.)