Spaces and hyphens are often removed and two surnames placed together.
Same with first and middle names.
It's never a problem. Even a truncated last or first name is not problem as long as at least there are at least 6 characters and they match.
It's the result of airlines being unable to rid themselves of one component or another of systems going back decades.