×

Trim Text

iOS 14 +

Notes

Remove characters from the start or end of the given text. You can remove blank lines and leading or trailing tabs and spaces

Syntax

trimText(charCount: <#Integer#>, trimFrom: <#Enumeration (TrimFrom)#>, sourceText: <#String (Allows Variables)#>, removeWhiteSpace: <#Boolean#>, removeNewLines: <#Boolean#>, emptyLineType: <#Enumeration (EmptyLineType)#>)

Example

trimText(charCount: 2, trimFrom: TrimFromStart, sourceText: "ShortcutInput", removeWhiteSpace: true, removeNewLines: true, emptyLineType: all)