Convert interpolated variables and strings prefixed with `~` 

Strings containing interpolated variables `'string@{variableName}'` should be converted `'string#{$variableName}'`. Strings that are prefixed with `~'string'` should be converted to `'string'`.