simplified character indexing