Match rule string only includes non-empty fields