Avoid whitespace before/after dots when joining