reset index of string