title: Doing minus operation on string
body: <p>I have a small problem with the minus operation in java. When the user press the 'backspace' key, I want the char the user typed, to be taken away from the word which exists.
  e.g
  word = myname
  <em>and after one backspace</em>
  word = mynam</p>
  
  <p>This is kinda of what I have:</p>
  
  <pre><code>String sentence = "";
  char c = evt.getKeyChar();
  if(c == '\b') {
    sentence = sentence - c;
  } else {
    sentence = sentence + c;
  }
  </code></pre>
  
  <p>The add operation works. So if I add a letter, it adds to the existing word. However, the minus isn't working. Am I missing something here? Or doing it completely wrong?</p>