Complex sentence: Shaw was elected department commander of the Grand Army of the Republic of New York in 1896, and was unanimously elected commander in chief at the national encampment in 1899.
Split into simpler sentences: Shaw was elected department commander of the Grand Army of the Republic of New York in 1896. Unanimously elected commander in chief at the national encampment in 1899.