Adding a string2pattern function for reading in the initial pattern
Adding a test of the string2pattern function