Adding updated Code of String Matching