Open
Description
Partly due to #24840, taking a slice of a string ends up checking bounds at least three different times. This should be reduced to a single time.
Partly due to #24840, taking a slice of a string ends up checking bounds at least three different times. This should be reduced to a single time.