removing characters finally working