org.apache.velocity.exception.MethodInvocationException: Invocation of method substring in class java.lang.String threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at mystring[line 11, column 24]