s/\)([^()]+)\(/]${1}[/g; # to surround the whole variable name which is interpreted inside a string