### 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
").lstrip("a") == "bca");
	).rstrip("a") == "abc");
	").rstrip("a") == "abc");
	
	// and the same second as "ÿ" (\u00ff)
	STRIP_TEST(String::utf8("¿").lstrip(String::utf8("µÿ")) == String::utf8("¿"));
	STRIP_TEST(String::utf8("¿").rstrip(String::utf8("µÿ")) == String::utf8("¿"));
	STRIP_TEST(String::utf8("µ¿ÿ").lstrip(String::utf8("µÿ")) == String::utf8("¿ÿ"));
	STRIP_TEST(String::utf8("µ¿ÿ").rstrip(String::utf8("µÿ")) == String::utf8("µ¿"));
	// the above tests repeated with additional superfluous strip chars
	
	).lstrip("qwjkl") == "abc");
	).rstrip("qwjkl") == "abc");
	
	).lstrip("qwajkl") == "bc");
	).rstrip("qwcjkl") == "ab");
	
	STRIP_TESTbbababccc").lstrip("qwabjkl") == "ccc");
	STRIP_TEST(String("aaabcbcbcbbcbbc").rstrip("qwcbjkl") == "aaa");
	
	STstrip("qwjkl") == "");
	STRIP_TEST(String("").rstrip("qwjkl") == "");
	
	bcabc").lstrip("qwbcajkl") == "");
	bcabc").rstrip("qwbcajkl") == "");
	
	).lstrip("qwcjkl") == "abc");
	").lstrip("qwajkl") == "bca");
	).rstrip("qwajkl") == "abc");
	").rstrip("qwajkl") == "abc");