Program to match the string