<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_line(str, delimiter):
 """Split string on given delimiter, remove whitespace from each field."""


    return [x.strip() for x in str.strip().split(delimiter) if x != '']