How to replace an element in a string

Talend Open Studio for ESB User Guide

EnrichVersion
6.4
EnrichProdName
Talend Open Studio for ESB
task
Design and Development
EnrichPlatform
Talend Studio

It is easy to use the CHANGE routine along with a tJava component, to replace one element in a string with another:

System.out.printIn(StringHandling.CHANGE("hello world!", "world", "guy"));

The routine replaces the old element with the new element specified.