Insert special character after and before a string

$1? HOW TO REPLACE THAT?
coz the first value wont be constant everytime