Fixed empty string matcher detection