def strip_whitespace(values):
    """Strip leading and trailing whitespace from each string in a list of
    strings. If the string only contains whitespace, filter it out.
    """
    return [v.strip() for v in values if v.strip()]