def string_to_list(string):
    """ To convert a string of entities diveded by commas into a list. """
    if string is None or string == "":
        return []
    return list(map(lambda x: x.strip(), string.split(",")))