<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def prepend_string(t, string):
 """Prepend a string to a target node as text."""

    node = t.tree
    if node.text is not None:
        node.text += string
    else:
        node.text = string