

class StringUtil:

    @staticmethod
    def get_words(sentence=None, delimiter=" "):
        words = None
        if sentence is None:
            raise Exception("No input to the function")
        else:
            if delimiter in sentence:
                words = sentence.split(" ")
            else:
                words = sentence

        return words
7a52f31939ad767d003f3364dd387f3ff1422c8a
<mask token>

class StringUtil:
    <mask token>

class StringUtil:

    @staticmethod
    def get_words(sentence=None, delimiter=' '):
        words = None
        if sentence is None:
            raise Exception('No input to the function')
        elif delimiter in sentence:
            words = sentence.split(' ')
        else:
            words = sentence
        return words



class StringUtil:

    @staticmethod
    def get_words(sentence=None, delimiter=" "):
        words = None
        if sentence is None:
            raise Exception("No input to the function")
        else:
            if delimiter in sentence:
                words = sentence.split(" ")
            else:
                words = sentence

        return words