removed unused cmpStr routine