minor bug in stringdistmatrix