guessing when a lines should be joined with a space and when not