Allow empty strings

String detection pattern allow empty strings