Text Functions

Text functions help you normalize, slice, and inspect strings.

FunctionDescriptionExamples
UPPERConvert to uppercaseUPPER("Hello World") → "HELLO WORLD"
LOWERConvert to lowercaseLOWER("Hello World") → "hello world"
TRIMRemove leading and trailing whitespaceTRIM(" hello ") → "hello"
LEFTLeft substringLEFT("Hello World", 5) → "Hello"
LEFT("Test", 10) → "Test"
RIGHTRight substringRIGHT("Hello World", 5) → "World"
RIGHT("Test", 10) → "Test"
MIDMiddle substringMID("Test", 1, 4) → "Test"
MID("Hello World", 7, 5) → "World"
CONTAINSCheck if string contains textCONTAINS("Hello World", "World") → true
CONTAINS("Hello World", "Universe") → false
STARTS_WITHCheck if string starts with textSTARTS_WITH("Hello World", "Hello") → true
STARTS_WITH("Hello World", "Universe") → false
ENDS_WITHCheck if string ends with textENDS_WITH("Hello World", "World") → true
ENDS_WITH("Hello World", "Universe") → false
SUBSTITUTEReplace text in string. Replace all instances of the old text with the new text. Optionally, limit the number of replacements to the specified number.SUBSTITUTE("code c", "c", "m") → "mode m"
SUBSTITUTE("A B A B", "A", "-", 1) → "- B A B"
REPLACEReplace text in string. Starting at the specified position, replace the specified number of characters with the new text.REPLACE("Hello World", 1, 5, "Hi") → "Hi World"
Text Functions - TemplateDocs Documentation