The string type is a sequence of characters.
The string library is a standard Lua library which provides functions for the manipulation of strings.
In Garry's Mod there are several extra useful functions and features added to this library.
Most notably all strings will access this library through the string metatable index function.
This means all strings are treated like table objects and the string library as its Meta Table
The string metatable however is something else, and to access that you must use
The difference here is related to Metamethods, such as using (+) instead of (..) to concatenate strings.
+operator for concatenation breaks lua metamethod to sum string as numbers (Example:
"10" + "1"return
11(number)) and this is 400 times SLOWER!
This category lists functions available in the string library.