<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def cleanup_payload(self, payload):
 """ Basically, turns payload that looks like ' \\n ' to ''. In the calling function, if this function returns '' no object is added for that payload. """

        p = payload.replace('\n', '')
        p = p.rstrip()
        p = p.lstrip()
        return p