Add character deletion to changeBase()