Solves the K-Mismatch Problem for Strings