Add more test cases for string indexing