~str -> StrBuf