class TextUtils {

    public static String replace( String string, String... symbolReplacementPairs )
    {
        List<String> pairs = Arrays.asList( symbolReplacementPairs );

        String replaced = string;

        for ( int i = 0; i < pairs.size(); i += 2 )
        {
            String symbol = Pattern.quote( pairs.get(i ) );
            String replacement = pairs.get( i + 1 );

            replaced = replaced.replaceAll( symbol, replacement );
        }

        return replaced;
    }

}