Union Pacific is replacing rail ties along 26 miles of track near Kansas Highway 61 between McPherson and Hutchinson.