That's not valid MySQL.
I'm finishing my 3rd year of a Software Engineering degree. The last program i worked on was a fully comprehensive instant messenger with file transfers and profiles, built up on fully encrypted client server communications architecture.
Honestly, if it was as simple as
Then i would have done it by now.:If Str1=(the F word )
:Then
:"Smeg"->Str1
:End
-Dave