to remove character in string code example
Example 1: remove occurrence in string pytthon
str="it is icy"
print str.replace("i", "")
Example 2: java string remove character
String str = "abcdDCBA123";
String strNew = str.replace("a", ""); // strNew is 'bcdDCBA123'