Remove all uses of ~[]