remove harmful string indexing