fix compile error: ~[] to Vec; ~str to String