title: Is it possible to do string-replacements in RavenDB javascript-patches?
body: <p>Case: when spawning new dev-environments, I would like to go through some collections and change TLD's in certain string-values, so e.g. <em>"bla bla mydomain.com"</em> becomes <em>"bla bla mydomain.localhost"</em>.</p>
  
  <p>I tried simply in patch-window in Raven Studio:</p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>this.MyProperty = this.MyProperty.replace(".com", ".localhost");
  </code></pre>
  
  <p>But I got:</p>
  
  <blockquote>
    <p>TypeError: Property 'replace' of object is not a function</p>
  </blockquote>
  
  <p>After that I went to <a href="https://ravendb.net/docs/article-page/3.5/csharp/client-api/commands/patches/how-to-use-javascript-to-patch-your-documents" rel="nofollow noreferrer">the docs</a>, where indeed it seems string-replacement is not an option.</p>
  
  <p>My question is: is it possible in any way to do string-replacement in js-patches in RavenDB?</p>