def strip_entry_value(entry_value):
    """Strip white space from a string or list of strings

    :param entry_value: value to strip spaces from
    :return: value minus the leading and trailing spaces
    """
    if isinstance(entry_value, list):
        new_list = []
        for value in entry_value:
            new_list.append(value.strip())
        return ' '.join(new_list)
    if isinstance(entry_value, str):
        return entry_value.strip()