Mark std.string.inPattern as @safe and pure