Assert a pattern is a string.