def clean(values, strip=strip, empty=True):
    """
    Strip each value and yield if not empty.
    """
    for value in values:
        value = strip(value)
        if not value and empty:
            continue
        yield value
