Correctly merge attributes without leading whitespace