Fix string matching to detect KYC errors