> ## Documentation Index
> Fetch the complete documentation index at: https://docs.condotta.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Text Tools

> Split, join, replace, trim, convert case, slugify, and more string operations.

The Text Tools connector provides a comprehensive set of string manipulation operations for your workflows.

> [!NOTE]
>
> No connection required. This utility connector works out of the box.

## Tools

> [accordion] split: Split text by delimiter
>
> **text** `string` *required*
>
> Text to split.
>
> **delimiter** `string` *required*
>
> Delimiter string or regex pattern.
>
> **isRegex** `boolean` (default: false)
>
> Treat delimiter as a regular expression.
>
> **limit** `number`
>
> Maximum number of splits.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "one, two, three, four",
>   "delimiter": ", ",
>   "limit": 3
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> {
>   "parts": ["one", "two", "three, four"],
>   "count": 3
> }
> ```

> [accordion] join: Join strings together
>
> **parts** `string[]` *required*
>
> Array of strings to join.
>
> **separator** `string`
>
> Separator between parts.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "parts": ["2026", "04", "02"],
>   "separator": "-"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "2026-04-02" }
> ```

> [accordion] replace: Find and replace
>
> **text** `string` *required*
>
> Source text.
>
> **search** `string` *required*
>
> String or regex pattern to find.
>
> **replacement** `string` *required*
>
> Replacement text.
>
> **isRegex** `boolean` (default: false)
>
> Treat search as a regular expression.
>
> **replaceAll** `boolean` (default: true)
>
> Replace all occurrences (or just the first).
>
> **flags** `string` (default: g)
>
> Regex flags (when `isRegex` is true).
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "Hello World! Hello Universe!",
>   "search": "Hello",
>   "replacement": "Hi",
>   "replaceAll": true
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "Hi World! Hi Universe!" }
> ```

> [accordion] trim: Remove whitespace
>
> **text** `string` *required*
>
> Text to trim.
>
> **mode** `string` (default: both)
>
> Trim mode: `both`, `start`, or `end`.
>
> **chars** `string`
>
> Specific characters to trim (whitespace if omitted).
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "---Hello World---",
>   "chars": "-"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "Hello World" }
> ```

> [accordion] case: Convert text case
>
> **text** `string` *required*
>
> Text to convert.
>
> **to** `string` *required*
>
> Target case: `upper`, `lower`, `title`, `sentence`, `camel`, `pascal`, `snake`, `kebab`, `constant`, `dot`, `path`, or `capital`.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "user first name",
>   "to": "camel"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "userFirstName" }
> ```

> [accordion] truncate: Truncate with ellipsis
>
> **text** `string` *required*
>
> Text to truncate.
>
> **length** `number` *required*
>
> Maximum length.
>
> **ellipsis** `string` (default: ...)
>
> Ellipsis string.
>
> **preserveWords** `boolean` (default: false)
>
> Truncate at word boundaries.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "The quick brown fox jumps over the lazy dog",
>   "length": 20,
>   "preserveWords": true
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "The quick brown..." }
> ```

> [accordion] pad: Pad text to length
>
> **text** `string` *required*
>
> Text to pad.
>
> **length** `number` *required*
>
> Target length.
>
> **char** `string` (default:  )
>
> Pad character.
>
> **position** `string` (default: end)
>
> Pad position: `start`, `end`, or `both`.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "42",
>   "length": 6,
>   "char": "0",
>   "position": "start"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "000042" }
> ```

> [accordion] slugify: Convert to URL slug
>
> **text** `string` *required*
>
> Text to convert.
>
> **lowercase** `boolean` (default: true)
>
> Convert to lowercase.
>
> **separator** `string` (default: -)
>
> Word separator.
>
> **strict** `boolean` (default: true)
>
> Strip special characters.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "My Blog Post: A New Beginning!"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "my-blog-post-a-new-beginning" }
> ```

> [accordion] reverse: Reverse text
>
> **text** `string` *required*
>
> Text to reverse.
>
> **byWords** `boolean` (default: false)
>
> Reverse word order instead of characters.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "the quick brown fox",
>   "byWords": true
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "fox brown quick the" }
> ```

> [accordion] count-words: Count words
>
> **text** `string` *required*
>
> Text to count.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "The quick brown fox jumps over the lazy dog"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "count": 9 }
> ```

> [accordion] count-chars: Count characters
>
> **text** `string` *required*
>
> Text to count.
>
> **includeSpaces** `boolean` (default: true)
>
> Include spaces in the count.
>
> **includeNewlines** `boolean` (default: true)
>
> Include newlines in the count.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "Hello World",
>   "includeSpaces": false
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "count": 10 }
> ```

> [accordion] substring: Extract substring
>
> **text** `string` *required*
>
> Source text.
>
> **start** `number` *required*
>
> Start index (0-based).
>
> **end** `number`
>
> End index (exclusive).
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "Hello World",
>   "start": 6,
>   "end": 11
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "World" }
> ```

> [accordion] repeat: Repeat text
>
> **text** `string` *required*
>
> Text to repeat.
>
> **count** `number` *required*
>
> Number of repetitions (0–1000).
>
> **separator** `string`
>
> Separator between repetitions.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "na",
>   "count": 4,
>   "separator": " "
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "na na na na" }
> ```

> [accordion] contains: Check if text contains substring
>
> **text** `string` *required*
>
> Text to search.
>
> **search** `string` *required*
>
> Substring to find.
>
> **ignoreCase** `boolean` (default: false)
>
> Case-insensitive search.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "Error: Connection refused",
>   "search": "error",
>   "ignoreCase": true
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": true }
> ```

> [accordion] starts-with: Check prefix
>
> **text** `string` *required*
>
> Text to check.
>
> **prefix** `string` *required*
>
> Prefix to check for.
>
> **ignoreCase** `boolean` (default: false)
>
> Case-insensitive check.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "https://api.example.com/v1/users",
>   "prefix": "https://"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": true }
> ```

> [accordion] ends-with: Check suffix
>
> **text** `string` *required*
>
> Text to check.
>
> **suffix** `string` *required*
>
> Suffix to check for.
>
> **ignoreCase** `boolean` (default: false)
>
> Case-insensitive check.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "report_2026.pdf",
>   "suffix": ".pdf"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": true }
> ```

> [card] [Try this free for 14 days](https://preview.condotta.ai/signup)
>
> Start a 14-day trial on Band 1. At day 14, choose your band, or stop.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.