STRING data type methods

Table 1. Object methods
Name Description
append( string STRING )
       RETURNING result STRING
Concatenates a string.
equals( string STRING )
       RETURNING result BOOLEAN
Compares a string to the content of the variable.
equalsIgnoreCase( string STRING )
       RETURNING result BOOLEAN
Makes a case-insensitive string comparison.
getCharAt( position INTEGER )
       RETURNING result CHAR(1)
Returns the character at the specified position.
getIndexOf( string STRING, start INTEGER )
       RETURNING result INTEGER
Returns the position of a sub-string.
getLength( )
       RETURNING result INTEGER
Returns the length of the current string.
subString( start INTEGER, end INTEGER )
       RETURNING result STRING
Returns a sub-string according to start and end positions.
toLowerCase( )
       RETURNING result STRING
Returns the string converted to lower case.
toUpperCase( )
       RETURNING result STRING
Returns the string converted to upper case.
trim( )
       RETURNING result STRING
Removes leading a trailing blanks.
trimLeft( )
       RETURNING result STRING
Removes leading blanks.
trimRight( )
       RETURNING result STRING
Removes trailing blanks.