Lowercased alphanumerics only — the formatter-tolerant comparison ("₹5,00,000" → "500000", "12 34" → "1234").
static String squash(String s) => s.replaceAll(RegExp(r'[^0-9A-Za-z]'), '').toLowerCase();