Update getTargetFilter to support multiple prefixes