updated final version of arbitrary string comparison

somehow my last final version did not push correctly, had to rewrite my
code