removed leftover from failed optimization attempt

Instead of using regexp's FindAllString() within replace(), tried a for loop with strings' Count() for all escape sequences. No significant gain for the complexity trade-off.