Ok...what's the VB equivalent of Replace()? I have 2 variables, mainstring and username. Let's say mainstring contains :

$user is cool!

If I wanted to make $user to what's in username I would do

mainstring = Replace(mainstring, "$user", username)

Now how would I do this in C++??