Complex sentence: He was originally Hindu, but when Islam first came to the Malay Peninsula, he became a Muslim, changed his name into Sultan Mudzafar Shah, and the Kingdom of Langkasuka into the Kedah Sultanate.
Split into simpler sentences: He was originally Hindu, but when Islam first came to the Malay Peninsula, he accepted Islam and later became a Muslim. He later changed his name into Sultan Mudzafar Shah and changed the kingdom of Lankasuka into the Kedah Sultanate.