ExtendScriptでは使えないので正規表現を使う。
text.replaceAll('$', '') // replaceAll の場合text.replace(/\$/g, '') // replace の場合