fix empty string matching