remove specified characters