[9.x] Adds `str()` helper by nunomaduro · Pull Request #40520 · laravel/framework

This pull request proposes the addition of the str helper exactly as proposed here: #31707.