took care of double digit string index bug