fixed indexing of str, now just use ix in addition to getitem