def clean_split(text, delim):
    """
    Split texts and removes unnecessary empty spaces or empty items.
    :param text: Text to split
    :param delim: Delimiter
    :return: List of splited strings
    """

    return [x1 for x1 in [x.strip() for x in text.split(delim)] if len(x1)>0]