storing repeated and non-repeated string index