The reason that there are no spaces between the first and middle name is because some of airline reservation system removes the spaces and punctuation marks.
example: Passenger name: Mr John Peter Brown is displayed as: BROWN/JOHNPETER MR
All E-tickets & Documents questions example: Passenger name: Mr John Peter Brown is displayed as: BROWN/JOHNPETER MR