fix string find() check