remove homebrew-fork extend/string.rb

Integrate the last remaining monkeypatch `undent` into our own codebase.
Merge pull request #8392 from rolandwalker/remove_homebrew_extend_string

remove homebrew-fork extend/string.rb