diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp
index dad91832168d..2d4f0c19507c 100644
--- a/core/variant/variant_call.cpp
+++ b/core/variant/variant_call.cpp
@@ -1738,6 +1738,7 @@ static void _register_variant_builtin_methods() {
bind_string_method(to_utf32_buffer, sarray(), varray());
bind_string_method(hex_decode, sarray(), varray());
bind_string_method(to_wchar_buffer, sarray(), varray());
+ bind_method(String, resize, sarray("size"), varray());
bind_static_method(String, num_scientific, sarray("number"), varray());
bind_static_method(String, num, sarray("number", "decimals"), varray(-1));
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index 913f2f26543b..ca578664b6e3 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -720,6 +720,13 @@
Replaces all [b]case-insensitive[/b] occurrences of [param what] inside the string with the given [param forwhat].
+
+
+
+
+ Resizes this string to the new size. The size should be one more than desired string length (in order to accommodate the null terminator).
+
+