add double quotes to ${} except for set $line command