Yes, but, that uses a regex and the OP said "without regexes".
In reply to Re^2: char substitution without regexes by jwkrahn in thread char substitution without regexes by biohisham