code: function HammingDistance(s1, s2, ignoreCase) {
  	// Return -1 if one of the parameters is not a string
  	if (typeof(s1) != "string" || typeof(s2) != "string") {
  		return -1;
  	}
  	// Return -1 the lengths of the strings differ
  	if (s1.length != s2.length) {
  		return -1;
  	}
  
  	if (ignoreCase) {
  		s1 = s1.toLowerCase();
  		s2 = s2.toLowerCase();
  	}
  
    var diffs = 0;
    for (var i = 0; i < s1.length; i++) {
    	if (s1[i] != s2[i]) {
    		diffs++;
  		}
    }
    return diffs;
  }
docs: Computes the Hamming distance between two string -- intrepreted from: https://en.wikipedia.org/wiki/Hamming_distance s1 is the first string to compare s2 is the second string to compare Strings should have equal length