Function parseScrambledTextno longer iterates when the end_index surpasses the total length of the test_string input.
Found words are now capitalized, dashes now substitute characters rather than being appended.