Updated HammingDistance.php to allow for tokenized parameters.