A one-dimensional wave equation with nonlinear damping