Scalable Algorithms for String Kernels with Inexact Matching