remove all ~str
temporary replace with StrBuf