Lowercase (sourcestring), Ltrim (sourcestring), Mid (string, start, length) – Campbell Scientific CR9000X Measurement and Control System User Manual
Page 402: String or var, Integer

Section 11. String Functions
LowerCase (SourceString)
Returns a lower case string of SourceString
Syntax
Variable = LowerCase( SourceString )
Remarks
String functions are case sensitive. UpperCase or LowerCase can be used ot
convert a string to all one case.
LTrim (SourceString)
The LTrim function returns a copy of a string with no leading spaces.
Syntax
Variable = LTrim( SourceString )
Remarks
The SourceString parameter is the string that should be stripped of leading
spaces.
To trim trailing spaces only, use RTrim. To trim both leading and trailing
spaces, use Trim.
Mid (String, Start, Length)
The Mid instruction is used to return a substring that is within a string.
Syntax
SubString = Mid ( String, Start, Length )
Remarks
The Start and Length parameters are used to determine which part of the
String is returned. Regardless of the value of the Length parameter, the
returned string will not be longer than the original string.
String variables can be declared as only one or two dimensions; e.g., String(x)
or String(x,y). To access a specific character within a string, enter the character
as a third dimension; e.g., String(x,y,n) where n is the desired character
Parameter
& Data Type
Enter
MID PARAMETERS
String
String or Var
The string from which the Sub-string will be retrieved..
Start
Integer
Specifies where in the String to begin the operation. A 1 would result in the
SubString to begin with the first character in the String..
Length
Integer
Specifies the maximum number of characters to be returned by the
instruction.
11-6