STRING data type methods

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