Fix regex test that was using the wrong kind of string.