### 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
int len = length();
	int beg;
	for (beg = 0; beg < len; beg++) {
		if (p_chars.find_char(get(beg)) == -1) {
			break;
		}
	}
	if (beg == 0) {
		return *this;
	}
	return substr(beg, len - beg);
}
String String::rstrip(const String &p_chars) const {
	int len = length();
	int end;
	for (end = len - 1; end >= 0; end--) {
		if (p_chars.find_char(get(end)) == -1) {
			break;
		}
	}
	if (end == len - 1) {
		return *this;
	}
	return substr(0, end + 1);
}
bool String::is_network_share_path() const {