in reply to String Replace
Change the last line to:
$proc_string =~ s/\Q$temp1\E/$temp2/g; [download]
s/// does a regular expression substitute, you need \Q to quote meta-characters so they are matched exactly.