Enter a string:
Enter a pattern (without delimiters):