e(parts[0].length + refWord.length)];

                        // Handle prefix part before refWord
                        if (limitedParts[0]) {
                            alignedRaw.push(limitedParts[0]);
                        }

                        // Append the matched refWord
                        alignedRaw.push(refWord);

                        // Handle suffix part after refWord
                        if (limitedParts[1]) {
                            rawCopy[rawIdx] = limitedParts[1];
 