# String API

# Title FREE

Capitalizes the first letter in every word.

Example

"i love abracadalo!""I Love Abracadalo!"

API Base URL

https://api.abracadalo.com/string/title
Copy

Parameters

Name Type Description Required
string String String to be conversed Yes

Outputs

Name Type Description
string String String after conversion

# Uppercase FREE

Makes all letters in the string uppercase.

Example

"This is awesome :)""THIS IS AWESOME :)"

API Base URL

https://api.abracadalo.com/string/uppercase
Copy

Parameters

Name Type Description Required
string String String to be conversed Yes

Outputs

Name Type Description
string String String after conversion

# Lowercase FREE

Makes all letters in the string lowercase.

Example

"New York City (NYC)""new york city (nyc)"

API Base URL

https://api.abracadalo.com/string/lowercase
Copy

Parameters

Name Type Description Required
string String String to be conversed Yes

Outputs

Name Type Description
string String String after conversion

# Trim FREE

Removes white spaces from ends of a string.

Example

" penguins are cute ""penguins are cute"

API Base URL

https://api.abracadalo.com/string/trim
Copy

Parameters

Name Type Description Required
string String String to be trimmed Yes
side String Trim white spaces only from "left" or "right" end. (Default: both) No

Outputs

Name Type Description
string Integer Trimmed string

# Length FREE

Returns the length (amount of characters) in a string.

Example

"Penguins are cute!"18

API Base URL

https://api.abracadalo.com/string/length
Copy

Parameters

Name Type Description Required
string String String to be conversed Yes

Outputs

Name Type Description
length Integer Length of the string

# Starts With FREE

Validates if a string starts with a given prefix.

Example

"Elon Musk", "Elon"true

API Base URL

https://api.abracadalo.com/string/startsWith
Copy

Parameters

Name Type Description Required
string String String to be validated Yes
prefix String The string to be searched for at the beginning of string. Yes
ignoreCase Booean If case should be ignored. (Default: false) No
offset Integer The position in string from where to begin the validation. (Default: 0) No

Outputs

Name Type Description
result BoolString If the validation was successful.

# Ends With FREE

Validates if a string ends with a given suffix.

Example

"Elon Musk", "Musk"true

API Base URL

https://api.abracadalo.com/string/endsWith
Copy

Parameters

Name Type Description Required
string String String to be validated Yes
suffix String The string to be searched for at the end of string. Yes
ignoreCase Boolean If case should be ignored. (Default: false) No
length Number Length of string to contemplate (i.e. only consider the first X characters of the string). (Default: Length of string) No

Outputs

Name Type Description
result BoolString If the validation was successful.

# Is Alpha FREE

Validates if a string only contains alphabetical letters (no digits or special characters).

WARNING

Be aware that your language might contain letters like ä, é, or ß. This function in this case would return false. Then you might opt for a more powerful function like RegEx Test.

Example

"Elon"true

API Base URL

https://api.abracadalo.com/string/isAlpha
Copy

Parameters

Name Type Description Required
string String String to be validated Yes
whitespaces Boolean Allow whitespaces to occur in the string. (Default: false) No

Outputs

Name Type Description
result BoolString If the validation was successful.

# Is Numeric FREE

Validates if a string represents an integer or floating number.

Examples

"42"true

"1.23"true

" 1.23 "true

"1,23"false

"1,000.23"false

"hi"false

API Base URL

https://api.abracadalo.com/string/isNumeric
Copy

Parameters

Name Type Description Required
string String String to be validated Yes

Outputs

Name Type Description
result BoolString If the validation was successful.

# Is Decimal FREE

Validates if a string represents an integer.

Examples

"42"true

"1.23"false

API Base URL

https://api.abracadalo.com/string/isDecimal
Copy

Parameters

Name Type Description Required
string String String to be validated Yes

Outputs

Name Type Description
result BoolString If the validation was successful.

# Replace

Replaces all occurrences of search in string with replace.

Example

"Can I have your van, man?", "an", "oon""Coon, I have your voon, moon?"

API Base URL

https://api.abracadalo.com/string/replace
Copy

Parameters

Name Type Description Required
string String String to be conversed Yes
search String Substring to be replaced Yes
replace String Replacement for search Yes

Outputs

Name Type Description
string String String after conversion.

# Words

Splits a string at its whitespaces to return the list of words.

Example

"Can I have your van, man?"["Can", "I", "have", "your", "van,", "man?"], 6

API Base URL

https://api.abracadalo.com/string/words
Copy

Parameters

Name Type Description Required
string String String to be split Yes

Outputs

Name Type Description
words Array of strings Words.
count Number Amount of words.

# Split

Splits a string at any given separator.

Example

"Red and blue and yellow and pink", " and "["Red", "blue", "yellow", "pink"], 4

API Base URL

https://api.abracadalo.com/string/split
Copy

Parameters

Name Type Description Required
string String String to be split Yes
separator String Determines where each split should occur Yes

Outputs

Name Type Description
pieces Array of strings. Separated pieces.
count Number Amount of pieces.

# Date

Convert a string to an Adalo "Date & Time" object.

Example

Our API is very flexible about your input. All the following examples are valid inputs and will return the same output!

1651651200000

"2022-05-04 8:00"

"05/04/2022 08:00"

"04/05/2022 08:00", "fr"

"May 4th 2022, 8:00:00 am", "MMMM Do YYYY, h:mm:ss a"

"Mercredi, 4 Mai 2022, 8", "dddd, D MMMM YYYY, h", "fr"

API Base URL

https://api.abracadalo.com/string/date
Copy

Parameters

Name Type Description Required
date String Formatted date. Yes
format String Format specification of date. No
locale String Locale of date (language code). Can be used in combination or as an alternative to format. No

Outputs

Name Type Description
result Date & Time Result.

# Substring

Extract a portion of a string.

Example

"Abracadalo", 1, 3"brac"

"Abracadalo", 3"acadalo"

"Abracadalo", -5"adalo"

API Base URL

https://api.abracadalo.com/string/substring
Copy

Parameters

Name Type Description Required
string String Original string. Yes
start Number Start position. Negative numbers count from end of string. Yes
length Number Number of characters onwards from start position. (Default: until end of string) No

Outputs

Name Type Description
result String Substring.

# Reverse

Reverse a string.

Example

"reverse me""em esrever"

API Base URL

https://api.abracadalo.com/string/reverse
Copy

Parameters

Name Type Description Required
string String String to reverse. Yes

Outputs

Name Type Description
result String Reversed string.

# Padding

Add padding to a string. This can be interesting to, e.g., have leading zeros in order to force a 2-digit representation of a number (08, 09, 10, 11).

Example

"8", 4"0008"

"OK", 8, "xyz""xyzxyzOK"

API Base URL

https://api.abracadalo.com/string/padding
Copy

Parameters

Name Type Description Required
string String String that requires padding. Yes
length Number Target length of the result string. Yes
pad String String used as padding. (Default: "0") No
side String Side to append the padding (either "left" or "right"). (Default: "left") No

Outputs

Name Type Description
result String String after padding.
Last Updated: 6/18/2022, 9:45:07 AM