---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, Orchestration Builder, Orchestrate, Orchestration]
nav: wcp_docs
parent_url: /wcp_docs/
title: >- 
  Reference: String Member Functions
layout: subsection
---

<a id="section_N10022_N1001F_N10001"></a>
<b>Instance Type: String</b>

<table><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td>SHA256withRSASign</td><td>Arguments: <ul><li>keystore (Data)
</li><li>alias (String)
</li><li>password (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul><p>Returns the Base64 Encoded signature of the string using the SHA256withRSA algorithm and the supplied keystore, key alias, and keystore password.</p></td></tr><tr><td>SHA256withRSAVerify</td><td>Arguments: <ul><li>signature (Data)
</li><li>keystore (Data)
</li><li>alias (String)
</li><li>password (String)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul><p>Returns true if the given Base 64 encoded signature verifies against the string using SHA256withRSA and the supplied keystore, key alias, and keystore password.</p></td></tr><tr><td>asCSV</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Csv
</li></ul> Treats the document as CSV (of CsvTypeAny).</td></tr><tr><td>asCSV</td><td>Arguments: <ul><li>schemaReference (String)
</li></ul> <p>Return Type:</p><ul><li>Csv
</li></ul> Treats the document as CSV (of CsvTypeAny) and applies the specified CSV format.</td></tr><tr><td>asJSON</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Json
</li></ul> Treats the document as JSON (of JsonTypeAny).</td></tr><tr><td>asXML</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Xml
</li></ul> Treats the document as XML (of XmlTypeAny).</td></tr><tr><td>abbreviate</td><td>Arguments: <ul><li>maxWidth (Number)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string of length maxWidth, replacing the final 3 characters with '…'.</p> <p>Returns the whole string if maxWidth is less than or equal to string length.</p> <p>Throws an exception if maxWidth is less than 4.</p> <p>Examples for the string "Washington":</p><ul><li>string.abbreviate(6) = "Was..."
</li><li>string.abbreviate(1) = "W..."
</li></ul></td></tr><tr><td>append</td><td>Arguments: <ul><li>str (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul><p>Returns the string with the specified string appended.</p></td></tr><tr><td>camelCase</td><td>Arguments: <ul><li>separator (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul><p>Splits the string into parts by the separator, uppercases the first and lowercases the remaining characters of each part, and returns the reassembled string, including the separator.</p></td></tr><tr><td>camelCase</td><td>Arguments: <ul><li>oldSeparator (String)
</li><li>newSeparator (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul><p>Splits the string into parts by the old separator, uppercases the first and lowercases the remaining characters of each part, and returns the reassembled string with the old separator replaced by the new one.</p></td></tr><tr><td>capitalize</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with the first character converted to title case.</p> <p>Example for the string "miami":</p><ul><li>string.capitalize = "Miami"
</li></ul> <p>Example for the string "mIami":</p><ul><li>string.capitalize = "MIami"
</li></ul></td></tr><tr><td>contains</td><td>Arguments: <ul><li>searchStr (String)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if a string contains the specified search string. Case sensitive.</p> <p>A null string returns null.</p> <p>Example for the string "Detroit":</p><ul><li>string.contains("D") = true
</li></ul> <p>Example for the string "detroit":</p><ul><li>string.contains("D") = false
</li></ul></td></tr><tr><td>containsIgnoreCase</td><td>Arguments: <ul><li>searchStr (String)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if a string contains the specified search string. Ignores case.</p> <p>A null string returns null.</p> <p>Example for the string "Detroit":</p><ul><li>string.contains("D") = true
</li></ul> <p>Example for the string "detroit":</p><ul><li>string.contains("D") = true
</li></ul></td></tr><tr><td>defaultIfBlank</td><td>Arguments: <ul><li>defaultStr (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string, or if the string is whitespace, empty or null, returns the specified defaultStr.</p> <p>Example for the string "Chicago":</p><ul><li>string.defaultIfBlank("Unknown City") = "Chicago"
</li></ul> <p>Example for the string "":</p><ul><li>string.defaultIfBlank ("Unknown City") = "Unknown City"
</li></ul></td></tr><tr><td>defaultIfEmpty</td><td>Arguments: <ul><li>defaultStr (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string, or if the string is empty or null, returns the specified defaultStr.</p> <p>Examples for a null string:</p><ul><li>string.defaultIfEmpty("NULL") = "NULL"
</li></ul> <p>Example for the string "":</p><ul><li>string.defaultIfEmpty(null) = null
</li></ul></td></tr><tr><td>endsWith</td><td>Arguments: <ul><li>suffix (String)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if a string ends with the specified suffix. Case sensitive.</p> <p>Examples for the string "Dallas":</p><ul><li>string.endsWith("as") = true
</li><li>string.endsWith("ll") = false
</li></ul></td></tr><tr><td>endsWithIgnoreCase</td><td>Arguments: <ul><li>suffix (String)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if a string ends with the specified suffix. Ignores case.</p> <p>Examples for the string "Dallas":</p><ul><li>string.endsWithIgnoreCase("AS") = true
</li><li>string.endsWithIgnoreCase("As") = true
</li></ul></td></tr><tr><td>equals</td><td>Arguments: <ul><li>stringValue(StringType)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if the string is equal to the specified string, including case.</p></td></tr><tr><td>equalsIgnoreCase</td><td>Arguments: <ul><li>stringValue(StringType)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if the string is equal to the specified string, ignoring case.</p></td></tr><tr><td>escapeXml</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Escapes characters from a string so it can be inserted into a valid XML document.</td></tr><tr><td>getCountryCodeFromLocale</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns the country code from a locale. <p>Example for the locale "en_US":</p><ul><li>locale.getCountryCodeFromLocale = "US"
</li></ul></td></tr><tr><td>includeCharactersUsingList</td><td>Arguments: <ul><li>inclusionList (StringListType)
</li><li>defaultReplacement (StringType)
</li></ul> Return type: <ul><li>String
</li></ul> Returns a string, replacing any characters not present in the inclusion list with the specified replacement. Characters that are on the inclusion list are returned unchanged.</td></tr><tr><td>indexOf</td><td>Arguments: <ul><li>searchStr (String)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> <p>Returns the index of the first occurrence of the specified character within a string.</p> <p>Position counting begins at zero.</p> <p>A null string returns null.</p> <p>Examples for the string "Seattle":</p><ul><li>string.indexOf("S") = 0
</li><li>string.indexOf("e") = 1
</li></ul></td></tr><tr><td>indexOf</td><td>Arguments: <ul><li>searchStr (String)
</li><li>fromIndex (Number)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> <p>Returns the index of the first occurrence of the specified character within a string after the specified index.</p> <p>Position counting begins at zero.</p> <p>A null string returns null.</p> <p>Examples for the string "Seattle":</p><ul><li>string.indexOf("e", 4 ) = 6
</li><li>string.indexOf("e", 0) = 1
</li></ul></td></tr><tr><td>isAllLowerCase</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if a string contains lower case characters only.</p> <p>Example for a null string:</p><ul><li>string.isAllLowerCase = false
</li></ul> <p>Example for the string "atlanta":</p><ul><li>string.isAllLowerCase = true
</li></ul></td></tr><tr><td>isAllUpperCase</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if a string contains upper case characters only.</p> <p>Example for a null string:</p><ul><li>string.isAllUpperCase = false
</li></ul> <p>Example for the string "Atlanta":</p><ul><li>string.isAllUpperCase = false
</li></ul></td></tr><tr><td>isBlank</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if a string is empty, null, or contains whitespace only.</p> <p>Example for the string "":</p><ul><li>string.isBlank = true
</li></ul> <p>Example for the string (" "):</p><ul><li>string.isBlank = true
</li></ul></td></tr><tr><td>isEmpty</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if a string is empty or null.</p> <p>Example for the string "":</p><ul><li>string.isEmpty = true
</li></ul> <p>Example for the string (" "):</p><ul><li>string.isEmpty = false
</li></ul></td></tr><tr><td>isNumber</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> Returns true if the string is a valid Java number.</td></tr><tr><td>isNumeric</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if a string contains Unicode digits only.</p> <p>A null string returns false.</p> <p>A decimal point isn't a Unicode digit and returns false.</p> <p>Example for the string "778":</p><ul><li>string.isNumeric("778") = true
</li></ul> <p>Example for the string "-778":</p><ul><li>string.isNumeric = false
</li></ul></td></tr><tr><td>lastIndexOf</td><td>Arguments: <ul><li>searchStr (String)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> <p>Returns the index of the last occurrence of the specified character within a string.</p> <p>Position counting begins at zero.</p> <p>A null string returns -1.</p> <p>Example for the string "Tampa":</p><ul><li>string.lastIndexOf("a") = 4
</li></ul> <p>Example for a null string:</p><ul><li>string.lastIndexOf(*) = -1
</li></ul></td></tr><tr><td>lastindexOf</td><td>Arguments: <ul><li>searchStr (String)
</li><li>fromIndex (Number)
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> <p>Returns the index of the last occurrence of the specified character within a string, starting from the given index and working backwards.</p> <p>Position counting begins at zero.</p> <p>A null string returns -1.</p> <p>Example for the string "Philadelphia":</p><ul><li>string.lastIndexOf("a", 7) = 4
</li></ul> <p>Example for a null string:</p><ul><li>string.lastIndexOf(*) = -1
</li></ul></td></tr><tr><td>leftPad</td><td>Arguments: <ul><li>size (Number)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string, left-padded with the specified number of spaces.</p> <p>Examples for the string "New York":</p><ul><li>string.leftPad(3) = " New York"
</li><li>string.leftPad(1) = " New York"
</li></ul></td></tr><tr><td>leftPad</td><td>Arguments: <ul><li>size (Number)
</li><li>padChar (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string, left-padded with the specified number of the specified character.</p> <p>Examples for the string "New York":</p><ul><li>string.leftPad(3, "*") = "***New York"
</li><li>string.leftPad(1, "X") = "XNew York"
</li></ul></td></tr><tr><td>length</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> <p>Returns string length.</p> <p>Returns 0 if the string is null.</p> <p>Example for the string "Tucson":</p><ul><li>string.length = 6
</li></ul> <p>Example for the string "":</p><ul><li>string.length = 0
</li></ul></td></tr><tr><td>lowerCase</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string converted to lower case.</p> <p>Example for the string "Memphis":</p><ul><li>string.lowerCase("Memphis") = "memphis"
</li></ul> <p>Example for the string "memPHis":</p><ul><li>string.lowerCase("meMPHis") = "memphis"
</li></ul></td></tr><tr><td>lowerCase</td><td>Arguments: <ul><li>locale (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string converted to lower case using the rules of the specified locale.</p></td></tr><tr><td>normalizeSpace</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns the string with leading and trailing spaces removed, and any group of consecutive whitespace characters replaced by a single space.</p></td></tr><tr><td>pathEncode</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with non-ASCII characters escaped for use in URL path segments.</p></td></tr><tr><td>remove</td><td>Arguments: <ul><li>remove (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with all occurrences of the specified substring removed.</p> <p>A null string returns null.</p> <p>An empty string returns the empty string.</p> <p>A null substring returns the string.</p> <p>An empty substring returns the string.</p> <p>Examples for the string "Orlando":</p><ul><li>string.remove("do") = "Orlan"
</li><li>string.remove("xyz") = "Orlando"
</li></ul></td></tr><tr><td>removeEnd</td><td>Arguments: <ul><li>remove (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with the specified substring removed, provided the substring occurs at the end of the string. Otherwise returns the string. Case sensitive.</p> <p>A null string returns null.</p> <p>An empty string returns the empty string.</p> <p>A null substring returns the string.</p> <p>Examples for the string "Charlotte":</p><ul><li>string.removeEnd("te") = "Charlot"
</li><li>string.removeEnd("TE") = "Charlotte"
</li></ul></td></tr><tr><td>removeEndIgnoreCase</td><td>Arguments: <ul><li>remove (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with the specified substring removed, provided the substring occurs at the end of the string. Otherwise returns the string. Ignores case.</p> <p>A null string returns null.</p> <p>An empty string returns the empty string.</p> <p>A null substring returns the string.</p> <p>Examples for the string "Charlotte":</p><ul><li>string.removeEndIgnoreCase("te") = "Charlot"
</li><li>string.removeEndIgnoreCase("TE") = "Charlot"
</li></ul></td></tr><tr><td>removeStart</td><td>Arguments: <ul><li>remove (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with the specified substring removed, provided the substring occurs at the start of the string. Otherwise returns the string. Case sensitive.</p> <p>A null string returns null.</p> <p>An empty string returns the empty string.</p> <p>A null substring returns the string.</p> <p>Examples for the string "Charlotte":</p><ul><li>string.removeStart("Ch") = "arlotte"
</li><li>string.removeStart("CH") = "Charlotte"
</li></ul></td></tr><tr><td>removeStartIgnoreCase</td><td>Arguments: <ul><li>remove (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with the specified substring removed, provided the substring occurs at the start of the string. Otherwise returns the string. Ignores case.</p> <p>A null string returns null.</p> <p>An empty string returns the empty string.</p> <p>A null substring returns the string.</p> <p>Examples for the string "Charlotte":</p><ul><li>string.removeStartIgnoreCase("Ch") = "arlotte"
</li><li>string.removeStartIgnoreCase("cH") = "arlotte"
</li></ul></td></tr><tr><td>replace</td><td>Arguments: <ul><li>searchStr (String)
</li><li>replacement (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with all occurrences of the specified search string replaced with the specified replacement string. Case sensitive.</p> <p>A null reference passed to this method results in no operation.</p> <p>Examples for the string "Louisville":</p><ul><li>string.replace("L", "X") = "Xouisville"
</li><li>string.replace("LOUIS", "loUIS") = "Louisville"
</li></ul></td></tr><tr><td>replaceAndIncludeCharacters</td><td>Arguments: <ul><li>mapping (StringMapType)
</li><li>defaultReplacement (StringType)
</li></ul> Return type: <ul><li>String
</li></ul> Returns a string with characters replaced according to the provided mapping. If a character is missing from the provided string, the default string is returned in its place.</td></tr><tr><td>replaceCharactersUsingMapping</td><td>Arguments: <ul><li>mapping (StringMapType)
</li></ul> Return types: <ul><li>String
</li><li>Textl
</li></ul> Returns a string with characters replaced according to the provided mapping. If a character isn't mapped, it's returned unchanged.</td></tr><tr><td>replaceIgnoreCase</td><td>Arguments: <ul><li>searchStr (String)
</li><li>replacement (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with all occurrences of the specified search string replaced with the specified replacement string. Ignores case.</p> <p>A null reference passed to this method results in no operation.</p> <p>Examples for the string "Louisville":</p><ul><li>string.replace("L", "X") = "XouisviXXe"
</li><li>string.replace("LOUIS", "loUIS") = "loUISville"
</li></ul></td></tr><tr><td>replaceOnce</td><td>Arguments: <ul><li>searchStr (String)
</li><li>replacement (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with the first occurrence of the specified search string replaced with the specified replacement string. Case sensitive.</p> <p>A null reference passed to this method results in no operation.</p> <p>Examples for the string "Louisville":</p><ul><li>string.replace("L", "X") = "Xouisville"
</li><li>string.replace("LOUIS", "loUIS") = "Louisville"
</li></ul></td></tr><tr><td>replaceOnceIgnoreCase</td><td>Arguments: <ul><li>searchStr (String)
</li><li>replacement (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with the first occurrence of the specified search string replaced with the specified replacement string. Ignores case.</p> <p>A null reference passed to this method results in no operation.</p> <p>Examples for the string "Louisville":</p><ul><li>string.replace("L", "X") = "XouisviXXe"
</li><li>string.replace("LOUIS", "loUIS") = "loUISville"
</li></ul></td></tr><tr><td>reverse</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with the order of its characters reversed.</p> <p>A null string returns null.</p> <p>Examples for the string "Fresno":</p><ul><li>string.replace= "onserF"
</li></ul></td></tr><tr><td>rightPad</td><td>Arguments: <ul><li>size (Number)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string, right-padded with the specified number of spaces.</p> <p>Examples for the string "New York":</p><ul><li>string.rightPad(3) = "New York "
</li><li>string.rightPad(1) = "New York "
</li></ul></td></tr><tr><td>rightPad</td><td>Arguments: <ul><li>size (Number)
</li><li>padChar (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string, right-padded with the specified number of the specified character.</p> <p>Examples for the string "New York":</p><ul><li>string.rightPad(3, "*") = "New York***"
</li><li>string.rightPad(1, "X") = "New YorkX"
</li></ul></td></tr><tr><td>size</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> <p>Returns string length.</p> <p>Returns 0 if the string is null.</p> <p>Example for the string "Milwaukee":</p><ul><li>string.size = 9
</li></ul> <p>Example for the string "":</p><ul><li>string.size = 0
</li></ul></td></tr><tr><td>split</td><td>Arguments: <ul><li>separator (String)
</li></ul> <p>Return Type:</p><ul><li>List
</li></ul> <p>Returns a string split into an array, using the specified character as the separator.</p> <p>Adjacent separators are treated as 1 separator.</p> <p>A null string returns null.</p> <p>Example for the string "R.e.n.o":</p><ul><li>string.split(".") = ["R", "e", "n", "o"]
</li></ul> <p>Example for the string "R:e::n:::o":</p><ul><li>string.split(":") = ["R", "e", "n", "o"]
</li></ul></td></tr><tr><td>startsWith</td><td>Arguments: <ul><li>prefix (String)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if a string starts with the specified prefix. Case sensitive.</p> <p>Examples for the string "Dallas":</p><ul><li>string.startsWith("Da") = true
</li><li>string.startsWith("DA") = false
</li></ul></td></tr><tr><td>startsWithIgnoreCase</td><td>Arguments: <ul><li>prefix (String)
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns true if a string starts with the specified prefix. Ignores case.</p> <p>Examples for the string "Dallas":</p><ul><li>string.startsWith("Da") = true
</li><li>string.startsWith("DA") = true
</li></ul></td></tr><tr><td>stripPrefix</td><td>Arguments: <ul><li>prefix (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with the specified set of characters from its start.</p> <p>A null string returns null.</p> <p>An empty string returns the empty string.</p> <p>Examples for the string "San Diego":</p><ul><li>string.stripStart("San D") = "iego"
</li><li>string.stripStart(null) = "San Diego"
</li></ul></td></tr><tr><td>stripSuffix</td><td>Arguments: <ul><li>suffix (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with the specified set of characters from its end.</p> <p>A null string returns null.</p> <p>An empty string returns the empty string.</p> <p>Examples for the string "San Diego":</p><ul><li>string.stripEnd("iego") = "San D"
</li><li>string.stripEnd(null) = "San Diego"
</li></ul></td></tr><tr><td>substring</td><td>Arguments: <ul><li>start (Number)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a substring of a string, starting from the specified start position.</p> <p>Position counting begins at zero.</p> <p>A start position of -n indicates that the substring count begins n characters from the end of the string.</p> <p>A null string returns null.</p> <p>An empty string returns "".</p> <p>Examples for the string "Wichita":</p><ul><li>string.substring(0) = "Wichita"
</li><li>string.substring(3) = "hita"
</li></ul></td></tr><tr><td>substring</td><td>Arguments: <ul><li>start (Number)
</li><li>end (Number)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a substring of a string, starting from the specified start position and ending before the specified end position. That is, the start index is inclusive and the end index is exclusive.</p> <p>Position counting begins at zero.</p> <p>A start or end position of -n indicates that the substring count begins or ends n characters from the end of the string.</p> <p>Returns "" if the start position is to the right of the end position.</p> <p>A null string returns null.</p> <p>An empty string returns "".</p> <p>Examples for the string "Wichita":</p><ul><li>string.substring(0,1) = "W"
</li><li>string.substring(3, 5) = "hi"
</li></ul></td></tr><tr><td>substringAfter</td><td>Arguments: <ul><li>separator (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a substring of a string, beginning with the first occurrence of the specified separator. The separator isn't returned.</p> <p>A null string returns null.</p> <p>An empty string returns "".</p> <p>A null separator returns an empty string if the input string isn't null.</p> <p>Returns an empty string if there are no characters after the separator.</p> <p>Examples for the string "Wichita":</p><ul><li>string.substringAfter("i") = "chita"
</li><li>string.substringAfter("") = "Wichita"
</li></ul></td></tr><tr><td>substringAfterLast</td><td>Arguments: <ul><li>separator (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a substring of a string, beginning with the last occurrence of the specified separator. The separator isn't returned.</p> <p>A null string returns null.</p> <p>An empty string returns "".</p> <p>A null separator returns an empty string if the input string isn't null.</p> <p>Returns an empty string if there are no characters after the separator.</p> <p>Examples for the string "Wichita":</p><ul><li>string.substringAfterLast("i") = "ta"
</li><li>string.substringAfterLast("p") = ""
</li></ul></td></tr><tr><td>substringBefore</td><td>Arguments: <ul><li>separator (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a substring of a string, ending with the first occurrence of the specified separator. The separator isn't returned.</p> <p>A null string returns null.</p> <p>An empty string returns "".</p> <p>A null separator returns an empty string if the input string isn't null.</p> <p>Returns an empty string if there are no characters before the separator.</p> <p>Examples for the string "Wichita":</p><ul><li>string.substringBefore("i") = "W"
</li><li>string.substringBefore("") = ""
</li></ul></td></tr><tr><td>substringBeforeLast</td><td>Arguments: <ul><li>separator (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a substring of a string, ending with the last occurrence of the specified separator. The separator isn't returned.</p> <p>A null string returns null.</p> <p>An empty string returns "".</p> <p>A null separator returns an empty string if the input string isn't null.</p> <p>Returns an empty string if there are no characters before the separator.</p> <p>Examples for the string "Wichita":</p><ul><li>string.substringBeforeLast("i") = "Wich"
</li><li>string.substringBefore(null) = "Wichita"
</li></ul></td></tr><tr><td>toBoolean</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Boolean
</li></ul> <p>Returns the string 'true' as Boolean true. Returns the string 'false' as boolean false. Ignores case.</p> Throws an exception for any other value. <p>Examples:</p><ul><li>string.toBoolean("True") = true
</li><li>string.toBoolean("FALSE") = false
</li></ul></td></tr><tr><td>toNumber</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>Number
</li></ul> <p>Returns the numeric value represented by the string, provided it's a valid number.</p> Throws an exception for strings that don't represent numbers. <p>Examples:</p><ul><li>string.toNumber("8") = 8
</li><li>string.toBoolean("15") = 15
</li></ul></td></tr><tr><td>toString</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> Returns a string representation of the value.</td></tr><tr><td>trim</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with control characters (code 32 or below in the ASCII table) removed from both ends.</p> <p>A null string returns null.</p></td></tr><tr><td>trimToEmpty</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with control characters (code 32 or below in the ASCII table) removed from both ends. Returns an empty string if the string is empty or null after the trim.</p></td></tr><tr><td>truncate</td><td>Arguments: <ul><li>maxWidth (Number)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string truncated to the specified maxWidth.</p> <p>Returns the whole string if the string length is less than maxWidth.</p> <p>Throws an exception if maxWidth is less than zero.</p> <p>Examples for the string "Anaheim":</p><ul><li>string.truncate(3) = "Ana"
</li><li>string.truncate(12) = "Anaheim"
</li></ul></td></tr><tr><td>truncate</td><td>Arguments: <ul><li>offset (Number)
</li><li>maxWidth (Number)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string truncated to the specified maxWidth starting at the specified index.</p> <p>Returns the whole string if the string length is less than maxWidth.</p> <p>Throws an exception if maxWidth or offset are less than zero.</p> <p>Examples for the string "Portland":</p><ul><li>string.truncate(3, 2) = "tl"
</li><li>string.truncate(2, 4) = "rtla"
</li></ul></td></tr><tr><td>uncapitalize</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string with the first character converted to lower case.</p> <p>A null string returns null.</p> <p>Example for the string "Fort Worth":</p><ul><li>string.uncapitalize = "fort Worth"
</li></ul> <p>Example for the string "FORT WORTH":</p><ul><li>string.uncapitalize = "fORT WORTH"
</li></ul></td></tr><tr><td>unescapeXml</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Unescapes characters that were escaped so they could be inserted into an xml document.</p></td></tr><tr><td>upperCase</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string converted to upper case.</p> <p>A null string returns null.</p> <p>Example for the string "El Paso":</p><ul><li>string.upperCase = "EL PASO"
</li></ul> <p>Example for a null string:</p><ul><li>string.upperCase = null
</li></ul></td></tr><tr><td>upperCase</td><td>Arguments: <ul><li>locale (String)
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a string converted to upper case using the rules of the specified locale.</p></td></tr><tr><td>urlDecode</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns a decoded application/x-www-form-urlencoded string. Uses a specific encoding scheme. The supplied encoding is used to determine what characters are represented by any consecutive sequences of the form "%xy".</p></td></tr><tr><td>urlEncode</td><td>Arguments: <ul><li>None
</li></ul> <p>Return Type:</p><ul><li>String
</li></ul> <p>Returns an encoded application/x-www-form-urlencoded string. Uses a specific encoding scheme. This method uses the supplied encoding scheme to obtain the bytes for unsafe characters.</p></td></tr></tbody></table><br/>

