Use compare() because endsWith() does not work as expected on Windows
p4#: 22005