Do you not mean to use `jobName.substring(i + 1)` here?