to remove or not remove a character