remove all uses of ~str