Transformer that selectively replaces specific values