Remove ~str pattern