Input (grade 10): It was the then colony's capital until 1753 and has been the national capital continuously since 1852.
Output (grade 4): SÃ # o TomÃ was the colony's capital until 1753. It has been the national capital since 1852.