character delete from string code example
Example 1: delete certain characters from a string python
for char in line:
if char in " ?.!/;:":
line.replace(char,'')
Example 2: java string remove character
String str = "abcdDCBA123";
String strNew = str.replace("a", ""); // strNew is 'bcdDCBA123'