Achieving string stability with nonlinear control inspired by a PDE