Complex sentence: When "Sonic X" first aired in the United Kingdom, the opening theme song was "Sonic X", but the United States ending was kept.
Split into simpler sentences: When "Sonic X" first aired in the United Kingdom, the opening theme song was'Sonic X'. But, the United States ending was kept.