I have a dash in my last name. Some airlines keep the dash, some drop it and my last name becomes Namename, some convert it to a space so it becomes Name Name. My passport retains the dash and is so far the only travel documentation that does so. Interestingly its never been an issue for airlines (even if travelling with Airline A that drops the dash and Airline B that converts the dash to space, on the same ticket as happened to me recently due to carrier A rebooking an oversold flight segment onto another carrier B). Even self service passport checks is fine despite the passport having a dash and all my flight bookings missing the dash. I suspect all the systems involved just strips all the special characters and spaces and compare that way. So instead of comparing Name-Name with Namename, they just normalise it to NAMENAME vs NAMENAME which matches.