### 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 s = *this;
	int end = s.find(".");
	if (end == -1) {
		end = s.length();
	}
	if (end == 0) {
		return s;
	}
	int begin = 0;
	while (begin < end && !is_digit(s[begin])) {
		begin++;
	}
	if (begin >= end) {
		return s;
	}
	while (end - begin < p_digits) {
		s = s.insert(begin, "0");
		end++;
	}
	return s;
}
String String::trim_prefix(const String &p_prefix) const {