code: def filter(self, table, keypairs, filter_string):
          
          query = filter_string.lower()
          return [keypair for keypair in keypairs
                  if query in keypair.name.lower()]
docs: Naive case-insensitive search.