Fixed race condition present in string array class