Create quite a basic indexing (for arrays and strings).