Java tutorial
//package com.java2s; public class Main { public static String cleanUpTagsString(String paramString) { int i = 0; String[] arrayOfString = new String[1]; arrayOfString[0] = "FF0C"; String str = ""; int j = arrayOfString.length; while (i < j) { str = paramString.replaceAll(Character.toString((char) Integer.parseInt(arrayOfString[i], 16)), ","); i += 1; } return str; } }