def str_to_list(value):
    """
    Convert a newline terminated string into a list.  Any empty lines
    will be removed from the result list.

    Parameters
    ----------
    value : str
        The string object to convert to a list

    Returns
    -------
    list
        List based on the string
    """
    result_list = []
    for item in value.strip().split('\n'):
        item = item.strip()
        if item:
            result_list.append(item)
    return result_list
