---
schema: rendered-html/v1
title: "strings | Developer Portal for YouTrack and Hub Documentation"
source_url: https://www.jetbrains.com/help/youtrack/devportal/v1-strings.html
generated_at: 2026-06-11T15:21:11.429894+00:00
---

Feedback

Thanks for your feedback!

Was this page helpful?

YesNo

Developer Portal for YouTrack and Hub

- Developer Portal
- Apps
- MCP Tools
- YouTrack Workflows
- JavaScript Workflow Quick Start Guide
- Create a Workflow
- Edit a Workflow
- Workflow Rule Types
- Transactions
- Use Cases for Workflows
- Web-based Workflow Editor
- Using an External Code Editor
- Default Workflows
- Custom Workflow Repository
- JavaScript Workflow Reference
- Rule-specific Properties
- Context
- Requirements
- Using the Workflow API
- Building Integrations with Slack
- Using REST API Methods in JavaScript Workflows
- Working with Dates and Times
- [Working with Periods](jetbrains__com__help__youtrack__devportal__working-with-periods.md)
- Localized Workflow Messages
- Troubleshooting Workflows
- Remote Debugger
- YouTrack Workflow API
- Change Log
- date-time
- entities
- [http](jetbrains__com__help__youtrack__devportal__v1-http.md)
- [license](jetbrains__com__help__youtrack__devportal__v1-license.md)
- [notifications](jetbrains__com__help__youtrack__devportal__v1-notifications.md)
- [search](jetbrains__com__help__youtrack__devportal__v1-search.md)
- [strings](v1-strings.html)
- workflow
- YouTrack Import Scripts
- YouTrack Form API
- [YouTrack REST API](jetbrains__com__help__youtrack__devportal__youtrack-rest-api.md)
- Hub REST API

1. YouTrack Workflows
2. JavaScript Workflow Reference
3. YouTrack Workflow API
4. [strings](#0)

# strings﻿

Last modified: 07 May 2026

This module provides support for a specific string utility from the standard Java library. All of the other methods that you can use to work with strings in workflows are taken from the standard JavaScript library and behave as described in the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String).

## Functions﻿

### getLevenshteinDistance﻿

```
static getLevenshteinDistance(str1, str2)
```

Returns the Levenshtein distance between two strings. Delegates to [org.apache.commons.text.similarity.LevenshteinDistance](https://commons.apache.org/proper/commons-text/javadocs/api-release/org/apache/commons/text/similarity/LevenshteinDistance.html).

**Parameters**

| Name | Type | Description |
| --- | --- | --- |
| str1 | string | The first string. |
| str2 | string | The string that is compared to the first string. |

### md5﻿

```
static md5(str)
```

Calculates the MD5 digest of a string and returns the value as a 32 character hex string.

Available since 2022.1

**Parameters**

| Name | Type | Description |
| --- | --- | --- |
| str | string | String to digest. |

**Return Value**

| Type | Description |
| --- | --- |
| string | Digested hex string. |

- [strings](/help/youtrack/devportal/v1-strings.html)
- [Functions](/help/youtrack/devportal/v1-strings.html#functions)
- [getLevenshteinDistance](/help/youtrack/devportal/v1-strings.html#getLevenshteinDistance)
- [md5](/help/youtrack/devportal/v1-strings.html#md5)

[search](jetbrains__com__help__youtrack__devportal__v1-search.md)workflow

- Privacy & Security
- Terms Of Use
- Trademarks
- Legal

Copyright © 2000–2026 JetBrains s.r.o.
