diff --git a/config/docs.cfg b/config/docs.cfg
index 29d1354e..304a5ebf 100644
--- a/config/docs.cfg
+++ b/config/docs.cfg
@@ -135,6 +135,15 @@ docexample [sleep 1000 [ echo foo ]] [Prints 'foo' to the screen after 1 second.
docident [strcmp] [Determines if two strings are equal.];
docargument [A] [the first string] [] [0];
docargument [B] [the second string] [] [0];
+docident [strlen] [Returns the length (in characters, including whitespace) of string S.];
+docargument [S] [The string to check.];
+docexample [echo (strlen "Hello world!")] [output: 12];
+docident [substr] [Copies a substring out of the original];
+docargument [S] [The original string.];
+docargument [A] [The starting position.];
+docargument [B] [The end position.];
+docexample [echo (substr abcdefgh 2 5)] [Output: cde];
+docexample [echo (substr abcdefgh 2)] [Output: cdefgh];
docident [while] [Loops the specified body while the condition evaluates to true.];
docargument [cond] [the condition] [0 (false) or anything else (true)] [0];
docargument [body] [the body to execute on each iteration] [] [0];
diff --git a/docs/reference.xml b/docs/reference.xml
index b98c9e82..6ed9cab9 100644
--- a/docs/reference.xml
+++ b/docs/reference.xml
@@ -351,9 +351,19 @@
+
+
+ Returns the length (in characters, including whitespace) of string S.
+
+
+
+
+
+
+
- Copys a substring out of the original.
+ Copies a substring out of the original.
@@ -376,8 +386,10 @@
-
-
+
+
+
+
@@ -5261,13 +5273,6 @@ Output:
-
- length of string S
-
-
-
-
-
leading zeros for the number V to make it W chars wide