Added test to pattern to insure it is a String