### 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 output = "2d";
	CHECK(input.capitalize() == output);
	input = "2d";
	output = "2d";
	CHECK(input.capitalize() == output);
	input = "2db";
	output = "2 Db";
	CHECK(input.capitalize() == output);
	input = "HTML5 Html5 html5 html_5";
	output = "Html 5 Html 5 Html 5 Html 5";
	CHECK(input.capitalize() == output);
	input = "Node2D Node2d NODE2D NODE_2D node_2d";
	output = "Node 2d Node 2d Node 2d Node 2d Node 2d";
	CHECK(input.capitalize() == output);
	input = "Node2DPosition";
	output = "Node 2d Position";
	CHECK(input.capitalize() == output);
	input = "Number2Digits";
	output = "Number 2 Digits";
	CHECK(input.capitalize() == output);
	input = "bytes2var";
	output = "Bytes 2 Var";
	CHECK(input.capitalize() == output);
	input = "linear2db";
	output = "Linear 2 Db";
	CHECK(input.capitalize() == output);
	input = "vector3";
	output = "Vector 3";
	CHECK(input.capitalize() == output);
	input = "sha256";