code: def isin_alone(elems, line):
      
      found = False
      for e in elems:
          if line.strip().lower() == e.lower():
              found = True
              break
      return found
docs: Check if an element from a list is the only element of a string.
  
      :type elems: list
      :type line: str