### 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 = 0;
	const char32_t *aux = p_str;
	while (*(aux++) != 0) {
		len++;
	}
	if (length() != len) {
		return false;
	}
	if (is_empty()) {
		return true;
	}
	int l = length();
	const char32_t *dst = get_data();
	
	for (int i = 0; i < l; i++) {
		if (p_str[i] != dst[i]) {
			return false;
		}
	}
	return true;
}
bool String::operator==(const String &p_str) const {