proper fix for joining chunks of whitespace-stripped text