title: How to remove the first and last character of a string?
body: <p>I have worked in a SOAP message to get the LoginToken from a Webservice, and store that LoginToken as a String. U used <code>System.out.println(LoginToken);</code> to print the value. This prints <code>[wdsd34svdf]</code>, but I want only <code>wdsd34svdf</code>. How can I remove these square brackets at the start and end of the output?</p>
  <p>Example:</p>
  <pre><code>String LoginToken=getName().toString();
  System.out.println(&quot;LoginToken&quot; + LoginToken);
  </code></pre>
  <p>The output is: <code>[wdsd34svdf]</code>.</p>
  <p>I want just <code>wdsd34svdf</code></p>