Dim x As String

x = txtURL.Text
x.Replace(" ", "+")

txtURL.Text = x
Why does this not replace the spaces with a +

I have tried
txtURL.Text.replace (" ". "+")
that does not work either