<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def clean(some_string, uppercase=False):
 """ helper to clean up an input string """

    if uppercase:
        return some_string.strip().upper()
    else:
        return some_string.strip().lower()