tests passing for match and partial strings for charactercompare