Or if you do so like having all your middle names or multi-barrelled family names in the booking, simply avoid putting spaces in so that JOHNMIDDLETON runs together or OPPENHEIMERSMITHTHESECONDOFBLASTBURY.
Airline res systems have two fields for names; lastname/firstname - whatever you want to enter in there, feel free - just don't space it, as those don't translate well...