firewall3: create a common helper to find strings in files