title: Google scripts use replaceText function
body: <p>I have this function that returns all the sheets that don't contain *.</p>
  <p>I would like to replace some text in the results.</p>
  <p>The results show all my sheets without a * like &quot;Client &lt; 25&quot;, &quot;Client &lt; 50&quot; etc</p>
  <p>I want to get the result: &quot;&lt; 25&quot; so remove &quot;Client&quot; from it.</p>
  <pre><code>function SheetNamesFiltered(avoid_memoization) {
    return SpreadsheetApp.getActiveSpreadsheet().getSheets()
    .map(sheet =&gt; [sheet.getName()])
    .filter(sheetName =&gt; !sheetName[0].match(/\*/));
  }
  </code></pre>
  <p>I have tried the following but it doesn't work</p>
  <pre><code>    function SheetNamesFiltered(avoid_memoization) {
    return SpreadsheetApp.getActiveSpreadsheet().getSheets()
    .map(sheet =&gt; [sheet.getName()].replaceText(&quot;Client &quot;, &quot;&quot;))
    .filter(sheetName =&gt; !sheetName[0].match(/\*/));
  }
  </code></pre>
  <p>Thank you!</p>