<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_string(cls, s, space):
 """Produce a TopNumber by hashing a string."""


        import hashlib

        hs = hashlib.sha1(s).hexdigest()

        return cls.from_hex(hs, space)