def __replace_capall(_sentence):
    """here we replace all instances of #CAPALL and cap the entire sentence.
    Don't believe that CAPALL is buggy anymore as it forces all uppercase OK?

    :param _sentence:
        """
    if _sentence is not None:
        while _sentence.find('#CAPALL') != -1:
            _sentence = _sentence.upper()
            _sentence = _sentence.replace('#CAPALL ', '', 1)
        if _sentence.find('#CAPALL') == -1:
            return _sentence
    else:
        return _sentence
