remove specified charactor of a string