javascript compare strings function
file to run tests of util.js