Hypercube Algorithms for Some String Comparison Problems