frederick ii went to war with the swedish king erik xiv. they were constantly trying to outdo each other.

Write the above sentence using proper case.
Frederick II went to war with the Swedish king Erik XIV. They were constantly trying to outdo each other.