def __check_spaces(_sentence):
    """
    Here we check to see that we have the correct number of spaces in the correct locations.

    :param _sentence:
    :return:
    """
    if _sentence is not None:
        words = _sentence.split()
        new_sentence = ''
        for i, word in enumerate(words):
            if word[-1] in set('.!?'):
                word += ' '
            new_word = ''.join(word)
            new_sentence += ' ' + new_word
        new_sentence = new_sentence.lstrip()
        new_sentence = new_sentence.rstrip()
        return new_sentence
