Text this: Endogenous and exogenous election timing