title: Swift String operation not working
body: <p>I am trying to read the string from a Label and remove the last character form it.</p>
  
  <p>This is how I am trying:</p>
  
  <pre><code>@IBAction func del(sender: UIButton) {
      let str = telephone.text!;
      let newstr = str.remove(at: str.index(before: str.endIndex))
      telephone.text = newstr;
  }
  </code></pre>
  
  <p>When I run, I get an error:</p>
  
  <pre><code>"String" does not have a member named "remove"
  </code></pre>
  
  <p>Can someone help me figure out the problem?
  Just started learning swift :(</p>