distance based on string match