fix compare string error