fix for start index of string close characters