Does it work for binary?Yes, it works for any strings, including binary sequences (e.g., 1011 vs 1001).