Swap element in tuple for new value