fix: remove delegate after scanning finishes

Remove the stringDetector delegate after scanning to avoir further
calls after the object is deallocated
Merge pull request #69 from hrakotobe/master

Remove the stringDetector delegate after scanning