Determine minimal substitutions and removals | Salesforce