Also, the error message is  "index %d is out of string", I believe