working string indexing