Distance/similarity measures for sequences and strings