I think this is what you want:

Code:
  
set %temp $replace($$?="Convert text",a,1,b,2,c,3)