Remove Character function