def METHOD_NAME(config, frontierString):
   # Replace the frontier string
   onlineFrontier = re.search('"(frontier:.*)"', config)
   if not onlineFrontier:
      print("WARNING: Could not find Frontier string in HLT configuration. Will ignore.")
   else:
      config = config.replace(onlineFrontier.group(1), frontierString)
   # Replace the global tag
   config = config.replace("H::All", "P::All")
   # print config -- debugging
   # Remove unwanted PSets
   config = RemovePSet(config, "MessageLogger")