### 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
output = "Sha 256";
	CHECK(input.capitalize() == output);
	input = "PascalCase";
	output = "Pascal Case";
	CHECK(input.capitalize() == output);
	input = "PascalPascalCase";
	output = "Pascal Pascal Case";
	CHECK(input.capitalize() == output);
	input = "snake_case";
	output = "Snake Case";
	CHECK(input.capitalize() == output);
	input = "snake_snake_case";
	output = "Snake Snake Case";
	CHECK(input.capitalize() == output);
	input = "sha256sum";
	output = "Sha 256 Sum";
	CHECK(input.capitalize() == output);
	input = "cat2dog";
	output = "Cat 2 Dog";
	CHECK(input.capitalize() == output);
	input = "function(name)";
	output = "Function(name)";
	CHECK(input.capitalize() == output);
	input = "snake_case_function(snake_case_arg)";
	output = "Snake Case Function(snake Case Arg)";
	CHECK(input.capitalize() == output);
	input = "snake_case_function( snake_case_arg )";
	output = "Snake Case Function( Snake Case Arg )";
	CHECK(input.capitalize() == output);
}