fix for hamming distance, for different size strings