title: Replace function - no overload method error C# - Trying to remove section in string
body: <p>I am trying to create urls from JSON.</p>
  <p>The 'Input' data that is being received from JSON starts with -sm which I am trying to replace with nothing &quot;&quot;(essentially remove it).</p>
  <p>When using the Replace function it is coming up with a no overload method error. How do I avoid this or how can I frame this code properly so there is no error? I want to remove sm- from all Input data.</p>
  <p>My code so far:</p>
  <pre><code>        List&lt;string&gt; url = new List&lt;string&gt;();
  
          //Loop which adds Input and signature to array
          foreach (JObject item in jArray)
          {
  
              url.Add(&quot;https://&quot; + (string)item.SelectToken(&quot;Input&quot;).Replace(&quot;sm-&quot;, &quot;&quot;) + &quot;.com/?sig=&quot; + (string)item.SelectToken(&quot;signature&quot;));
          }
  </code></pre>
  <p>Exact Message: CS1501 No overload for method 'Replace' takes two arguments</p>