string out of index access

should comment the codes! mistake i was removed earlier