Hamming–Levenshtein gap of a string | Synapse