Complex sentence: Lanark was the county town of the former county of Lanarkshire, though for many years Hamilton was the county town, prior to the formation of Strathclyde.
Split into simpler sentences: Lanark was the county town of the former county of Lanarkshire. For many years, however, Hamilton was the county town prior to the formation of Strathclyde.