Updating get-index to handle strings.