public boolean delete_text(int beginIndex, int endIndex) {
        if(beginIndex < 0 
        || beginIndex > endIndex 
        || endIndex > maxChars) {return false;}
        
        int deletionLength = endIndex - beginIndex;
        length -= deletionLength;
        
        for(int currentIndex = beginIndex; currentIndex < length; currentIndex++) {
            text[currentIndex] = text[currentIndex + deletionLength];
        }
        for(int currentIndex = length; currentIndex < maxChars; currentIndex++) {
            text[currentIndex] = ' ';
        }
        System.out.print(length);
        
        return true;
    }