Added support for pattern specifications for strings.