added compare string function