String utilities
  • 05 Feb 2023
  • 1 Minute to read
  • Dark
    Light

String utilities

  • Dark
    Light

Article Summary

Use these utilities for manipulating strings.

Convert string to lowercase

Converts all of the characters in the given string into lowercase.

Input

Convert This String to Lowercase

Output

convert this string to lowercase


Convert string to title case

Converts the first character of each word into uppercase.

Input

Convert this string to title case

Output

Convert This String To Title Case


Convert string to uppercase

Converts all of the characters in the given string into uppercase

Input

Convert this string to uppercase

Output

CONVERT THIS STRING TO UPPERCASE


Escape JSON String

Escapes certain characters in a string, for example, /, to make the string compatible with JSON format.

Input

The string which needs "escaping"\n

Output

The string which needs \"escaping\"\\n


Replace substring in text

Replaces a substring with another string in the provided text.

Input

Like this and like this.

Old_Text

this

New_Text

that

Instances

1

Output

Like that and like this.


Split Text

Splits the text into an array of strings according to the provided separator. Note that the text in the separator is removed from the string.

Input

Let's split this text.

Separator

this

Output

"Let's split ",

" text."


Trim spaces before and after string

Removes empty spaces before and after a string.

Input

Remove the 3 empty spaces before and this string.

Output

Remove the 3 empty spaces before and this string.


Trim string characters

Trims occurrences of the given characters from the beginning, and/or end of a string .

Input

I want to trim the following characters.

Characters

I w.rs** **

Side_to_Trim

Trim prefix and suffix

Output

ant to trim these characte.


Trim string prefix

Trims the defined prefix of the string

Input

The prefix in this example is 'The prefix'.

Prefix

The prefix

Output

in this example is 'The prefix'.


Trim string suffix

Trims the defined suffix of the string.

Input

The suffix in this example is 'the suffix'.

Prefix

the suffix

Output

The suffix in this example is


Truncate Text

Limits the string to the number of characters defined.

Input

Truncate this text to 15 characters.

Limit

15

Output

Truncate this t


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.