Update Lagrangian.
Reduce strings correctly.