Prevent extra spaces when joining lines for XML