<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def stripnull(string):
 """Return string truncated at first null character."""

    i = string.find(b'\x00')
    return string if (i < 0) else string[:i]