Implementation of the substring test by hashing | Synapse