### Godot version

4.0 beta17

### System information

Windows10

### Issue description

call `"".split()`
Is there an infinite loop inside? Function does not return.

### Steps to reproduce

"".split()

### Minimal reproduction project

N/A
String aux = this->_camelcase_to_underscore().replace("_", " ").strip_edges();
	String cap;
	for (int i = 0; i < aux.get_slice_count(" "); i++) {
		String slice = aux.get_slicec(' ', i);
		if (slice.length() > 0) {
			slice[0] = _find_upper(slice[0]);
			if (i > 0) {
				cap += " ";
			}
			cap += slice;
		}
	}
	return cap;
}
String String::to_camel_case() const {
	String s = this->to_pascal_case();
	if (!s.is_empty()) {
		s[0] = _find_lower(s[0]);
	}
	return s;
}
String String::to_pascal_case() const {
	return this->capitalize().replace(" ", "");
}
String String::to_snake_case() const {