Typescript String Is Not Subscriptable