String
From GMod Wiki
A string is simply a line of text. Text can have both numbers and text in it, but you shouldn't use strings for math or for any functions that need numbers specifically.
Be aware - strings are often very large, and by consequence much slower than other types of data. Avoid networking strings or performing operations on strings every frame whenever possible.
Library Functions
string.byte
string.char
string.dump
string.Explode
string.find
string.format
string.FormattedTime
string.GetExtensionFromFilename
string.GetFileFromFilename
string.GetPathFromFilename
string.gfind
string.gmatch
string.gsub
string.Implode
string.Left
string.len
string.lower
string.NiceSize
string.match
string.rep
string.Replace
string.reverse
string.Right
string.split
string.sub
string.ToMinutesSeconds
string.ToMinutesSecondsMilliseconds
string.ToTable
string.Trim
string.TrimLeft
string.TrimRight
string.upper
Example
If you want to split a string use string.Explode
Additional Notes
- The string library functions can be called as methods of actual strings. For example: my_string:upper() is a valid syntax.