Change `$url` to `$str`.