String trimmer line replacement is a job you should only ... removing the battery if it’s a cordless electric string trimmer, or pulling the plug if it’s a corded string trimmer.
Gas string trimmers, and some electric models, require hearing protection ... String trimmers last many years with proper care. Replace the line when it runs out, charge the batteries when needed ...