def assert_string(self, string):
        """Assert a fact as string."""
        fact = lib.EnvAssertString(self._env, string.encode())

        if fact == ffi.NULL:
            raise CLIPSError(self._env)

        return new_fact(self._env, fact)
Assert a fact as string.