Small refactor in String#split