accomodates for negative index numbers and index numbers that exceed max num of char