More efficient chomp for String (#58192)
We can avoid all the computation of valid indices for this simple
function, since it only strips CR (0xD) and LF (0xA), which are known to
be single bytes. This is approximately four times faster.
---------
Co-authored-by: Dilum Aluthge <dilum@aluthge.com>