The function parseScrambledText now walks along a test string and substitutes words, but it does not handle trailing single characters yet and the run time is greater than linear time complexity.