Requirement for empty string conflicts with string pattern