output subscripts for duplicate chars