added CompareStrings method and a demo