Exponential and polynomial stabilization of the Kirchhoff string by nonlinear boundary control