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 a string 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 substring.
getLength( )
       RETURNS INTEGER
Returns the length of the current string.
subString(
     startIndex INTEGER,
     endIndex INTEGER )
   RETURNS STRING
Returns a substring 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 blank space (ASCII 32) characters.
trimWhiteSpace( )
       RETURNS STRING
Removes leading and trailing whitespace characters.
trimLeft( )
       RETURNS STRING
Removes leading blank space (ASCII 32) characters.
trimLeftWhiteSpace( )
       RETURNS STRING
Removes leading whitespace characters.
trimRight( )
       RETURNS STRING
Removes trailing blank space (ASCII 32) characters.
trimRightWhiteSpace( )
       RETURNS STRING
Removes trailing whitespace characters.