Near-Optimal Quantum Algorithms for String Problems | Synapse