code: def matches_input(self, optimized_str):
          
  
          if all([keyword in optimized_str for keyword in self['keywords']]):
              logger.debug('Matched template %s', self['template_name'])
              return True
docs: See if string matches keywords set in template file