def get_list_index(str_list, selection):
    """
    Gets the index of the string in a list of strings. This is case
    case insensitive and returns the index of the default string.
    It removes any EOL in the strings.

      Parameters:
        str_list(list of (:term:`String`))

        selection (:term:`String`):

        default(:term:`String`):
      Returns:
        index of selected entry
      Exception:
        ValueError if the selection cannot be found in the list

    """
    l1 = [li.replace('\n', '').lower() for li in str_list]
    # l2 = [hi.lower() for hi in l1]
    # ValueError if match fails
    col_index = l1.index(selection.lower())
    return col_index