replaceall is a Python 2.7/3 module to replace or remove one or more Chars from a given string.
$ pip install replaceall
or
$ easy_install replaceall
remove single Char
from replaceall import replaceall
name = replaceall("John Doe!", "!")
print(name)
"John Doe"
replace Chars
from replaceall import replaceall
name = replaceall("John Doe#", "#", "!")
print(name)
"John Doe!"
also works with Lists
from replaceall import replaceall
replaceCharlist = ["!","@", "#"]
name = replaceall("John@Doe#.foo", replaceCharlist, ".")
print(name)
"John.Doe.foo"