ubText.length === 1) {
                            result.push(subText);
                            // Remove the subText from the text
                            text = text.slice(subText.length);
                            break;
                        } else {
                            // If the subText is not in the dictionary, then remove the last character of the subText
                            subText = subText.slice(0, -1);
                        }
                    }
                }
