title: Substring function in Jython
body: <p>I am using Jython for wsadmin scripting for one of my tasks.</p>
  
  <p><code>-c "test = 'project' " +
  -c "edit = test[1:]" + 
  -c "print edit"</code></p>
  
  <p>However when I execute the piece of code , I get the following error</p>
  
  <p><code>Traceback (innermost last):
    (no code object) at line 0
    File "&lt;input&gt;", line 1
   edit = test[1:] 
              ¬
  SyntaxError: Lexical error at line 1, column 12.  Encountered: "\u00dd" (221),after : ""</code></p>
  
  <p>Looks like the square brackets are not being accepted
  are there any other ways to obtain  a substring for a string in Jython?</p>