Fixed off-by-one error; token is no longer included in output.