Google Guava is a java library with lot of utilities and reusable components.
This requires the library guava-10.0.jar to be in classpath.
The following example shows using CharMatcher.replaceFrom() API.
It returns a string where each matching character in the given char sequence is replaced with
replacement char sequence.