Replace Command Not Working?

Blitz3D Forums/Blitz3D Beginners Area/Replace Command Not Working?

name$="blitz basic"

Graphics 640,480
SetBuffer BackBuffer()
HidePointer
Why doesn`t the following work? I can see nothing wrong with it but the string printed has none of its letters replaced. b`s should be replaced by a`s so why is the string still "blitz basic" as oppossed to "alitz aasic"?

While Not KeyHit(1)
Cls

Replace(name$,"b","a")

Text 10,10,name$
Flip
Wend
End

name = Replace(name$,"b","a")

Doh! My mistake. Thanks for the help.

Jason.