def get_list_by_separating_strings(list_to_be_processed, char_to_be_replaced=",", str_to_replace_with_if_empty=None):
    """ This function converts a list of type:
     ['str1, str2, str3', 'str4, str5, str6, str7', None, 'str8'] to:
     [['str1', 'str2', 'str3'], ['str4', 'str5', 'str6', 'str7'], [], ['str8']]
    """
    final_list =[]
    if list_to_be_processed is not None and list_to_be_processed is not False and list_to_be_processed != "":
        for i in range(0, len(list_to_be_processed)):
            if list_to_be_processed[i] is None or list_to_be_processed[i] is False or list_to_be_processed[i] == "":
                temp_list = []
            else:
                if list_to_be_processed[i] == "":
                    list_to_be_processed[i] = str_to_replace_with_if_empty
                temp_list = list_to_be_processed[i].split(char_to_be_replaced)
                for j in range(0, len(temp_list)):
                    temp_list[j] = temp_list[j].strip()
            final_list.append(temp_list)
    return final_list