Remove the stringDetector delegate after scanning

It's a tiny memory related fix, I saw this when trying to integrate this library with another PDF library. Hope it helps.