he text is less than the maxLength, then the subText is the text itself
                    if (text.length < maxLength) {
                        subText = text;
                    } else {
                        subText = text.substring(0, maxLength);
                    }
                    while (subText.length > 0) {
                        // If the subText is in the dictionary or the length of the subText is 1, then add it to the result
                        if (dictionary.includes(subText) || s