Forgotten debug statements returned instead of empty strings in compare
indexOfDifferences is public instead of private
indexOfDifferences does not check for null strings