Skip to main content

String Operations

countWords​

You can use this service to count the words in a string. For example, You have a String named str with the value "count words" The API will return Integer value 2.

URL:

https://api.rightwave.net/rdn/api/ss/countWords?input={Marketo token for input}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
string_1StringInput for countWords

Output:

{
"success": true,
"input": {
"input": "count words"
},
"result": {
"output": 2
},
"requestId": "2166675751947232"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/countWords?input=count words"

countChar​

You can use this service to get the number of characters in a string. For example, You have a String named str with the value "count characters" The API will return an Integer value of 16.

URL:

https://api.rightwave.net/rdn/api/ss/countChar?input={Marketo token for input}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
string_1StringInput for countChar

Output:

{
"success": true,
"input": {
"input": "count characters"
},
"result": {
"output": 16
},
"requestId": "21666758167295391"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/countChar?input=count characters"

replaceAWithBInCWithCase​

You can use this service to replace a string A with B in a string C withcase. For example, You have a String named str1 with value "center" and another string named str2 with value "hub" and another string named str3 with value "Information center". The API will return the string value "Information hub".

URL:

https://api.rightwave.net/rdn/api/ss/replaceAWithBInCWithCase?inputA={Marketo token for inputA}&inputB={Marketo token for inputB}&inputC={Marketo token for inputC}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputAStringFirst input for replaceAWithBInCWithCase
inputBStringSecond input for replaceAWithBInCWithCase
inputCStringThird input for replaceAWithBInCWithCase

Output:

{
"success": true,
"input": {
"inputA": "center",
"inputB": "hub",
"inputC": "Information center"
},
"result": {
"output": "Information hub"
},
"requestId": "2166676930320778"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/replaceAWithBInCWithCase?inputA=center&inputB=hub&inputC=Information center"

replaceAWithBInC​

You can use this service to replace a string A with B in a string C without case. For example, You have a String named str1 with value "center" and another string named str2 with value "hub" and another string named str3 with value "Information center". The API will return the string value "Information hub".

URL:

https://api.rightwave.net/rdn/api/ss/replaceAWithBInC?inputA={Marketo token for inputA}&inputB={Marketo token for inputB}&inputC={Marketo token for inputC}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputAStringFirst input for replaceAWithBInC
inputBStringSecond input for replaceAWithBInC
inputCStringThird input for replaceAWithBInC

Output:

{
"success": true,
"input": {
"inputA": "center",
"inputB": "hub",
"inputC": "Information center"
},
"result": {
"output": "Information hub"
},
"requestId": "21666770629521709"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/replaceAWithBInC?inputA=center&inputB=hub&inputC=Information center"

aContainsBWithCase​

You can use this service to search a string in another string with case. For example, You have a String named str1 with value "newspaper" and another string named str2 with value "paper". The API will return boolean value true.

URL:

https://api.rightwave.net/rdn/api/ss/aContainsBWithCase?inputA={Marketo token for inputA}&inputB={Marketo token for inputB}

Query Parameters:

Parameter NameData TypeDescription
inputAStringFirst input for aContainsBWithCase
inputBStringSecond input for aContainsBWithCase

Output:

{
"success": true,
"input": {
"inputA": "news paper",
"inputB": "paper"
},
"result": {
"output": true
},
"requestId": "21666857955047602"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/aContainsBWithCase?inputA=news paper&inputB=paper"

aContainsB​

You can use this service to search a string in another string without case. For example, You have a String named str1 with value "newspaper" and another string named str2 with value "paper". The API will return boolean value true.

URL:

https://api.rightwave.net/rdn/api/ss/aContainsB?inputA={Marketo token for inputA}&inputB={Marketo token for inputB}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputAStringFirst input for aContainsB
inputBStringSecond input for aContainsB

Output:

{
"success": true,
"input": {
"inputA": "newspaper",
"inputB": "paper"
},
"result": {
"output": true
},
"requestId": "2166685878478731"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/aContainsB?inputA=newspaper&inputB=paper"

pluralize​

You can use this service to get the plural value for a string. For example, You have a String named str with value "book". The API will return string value "books".

URL:

https://api.rightwave.net/rdn/api/ss/pluralize?input={Marketo token for input}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputStringInput for pluralize

Output:

{
"success": true,
"input": {
"input": "book"
},
"result": {
"output": "books"
},
"requestId": "21666859230054769"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/pluralize?input=book"

stringReverse​

You can use this service to reverse a string. For example You have a String named str with value "world is good". The API will return the string value "doog si dlrow".

URL:

https://api.rightwave.net/rdn/api/ss/stringReverse?input={Marketo token for input}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputStringInput for stringReverse

Output:

{
"success": true,
"input": {
"input": "world is good"
},
"result": {
"output": "doog si dlrow"
},
"requestId": "21666860934664902"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/stringReverse?input=world is good"

subString​

You can use this service to get part of a string from a string. For example, You have a String named str with value "collection" and another Integer named startingIndex with value 1 and another Integer named endingIndex with value 4. The API will return String value "oll".

URL:

https://api.rightwave.net/rdn/api/ss/subString?input={Marketo token for input}&int_startIndex={Marketo token for int_startIndex}&int_endIndex={Marketo token for int_endIndex}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputStringFirst input for subString
int_startIndexIntegerStart index for subString
int_endIndexIntegerLast index for subString

Output:

{
"success": true,
"input": {
"input": "basic service",
"int_startIndex": "2",
"int_endIndex": "5"
},
"result": {
"output": "sic"
},
"requestId": "216668623429863"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/subString?input=basic service&int_startIndex=2&int_endIndex=5"

convertToLowerCase​

You can use this service to convert a string value into lower case. For example, You have a String named str with value "LOWER CASE" The API will return String value "lower case".

URL:

https://api.rightwave.net/rdn/api/ss/convertToLowerCase?input={Marketo token for input}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputStringInput for convertToLowerCase

Output:

{
"success": true,
"input": {
"input": "LOWER CASE"
},
"result": {
"output": "lower case"
},
"requestId": "21666869387206730"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/convertToLowerCase?input=LOWER CASE"

convertToUpperCase​

You can use this service to convert a string value into upper case. For example, You have a String named str with value "upper case" The API will return String value "UPPER CASE".

URL:

https://api.rightwave.net/rdn/api/ss/convertToUpperCase?input={Marketo token for input}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonaccept application/json

Query Parameters:

Parameter NameData TypeDescription
inputStringInput for convertToUpperCase

Output:

{
"success": true,
"input": {
"input": "upper case"
},
"result": {
"output": "UPPER CASE"
},
"requestId": "21666870891105363"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/convertToUpperCase?input=uppercase"

convertToProperCase​

You can use this service to convert a string of every word's first letter into uppercase. For example, You have a String named str with value "uber" The API will return String value "Uber".

URL:

https://api.rightwave.net/rdn/api/ss/convertToProperCase?input={Marketo token for input}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputStringInput for convertToProperCase

Output:

{
"success": true,
"input": {
"input": "uber"
},
"result": {
"output": "Uber"
},
"requestId": "21666871386544723"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/convertToProperCase?input=uber"

ordinalize​

You can use this service to ordinalize a number. For example, You have an Integer named number with value 3. The API will return the string value "3rd".

URL:

https://api.rightwave.net/rdn/api/ss/ordinalize?int_Value={Marketo token for int_Value}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
int_ValueIntegerInput for ordinalize

Output:

{
"success": true,
"input": {
"int_Value": "3"
},
"result": {
"output": "3rd"
},
"requestId": "21666878401015172"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/ordinalize?int_Value=3"

whitespaceCompact​

You can use this service to remove whitespaces from a string. For example, You have a String named str with value "Basic Service". The API will return the String value "BasicService".

URL:

https://api.rightwave.net/rdn/api/ss/whitespaceCompact?input={Marketo token for input}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputStringInput for whitespaceCompact

Output:

{
"success": true,
"input": {
"input": "Basic Service"
},
"result": {
"output": "BasicService"
},
"requestId": "21667207565668385"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/whitespaceCompact?input=Basic Service"

splitString​

You can use this service to split a string with a delimiter. For example, You have a String named str with value "car*bike" and another string named delimiter with value "*". The API will return string values as output1: "car", output2: "bike".

URL:

https://api.rightwave.net/rdn/api/ss/splitString?input={Marketo token for input}&delimeter={Marketo token for delimeter}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputStringFirst input for splitString
delimiterStringSecond input for splitString

Output:

{
"success": true,
"input": {
"input": "car*bike",
"delimeter": "*"
},
"result": {
"output": {
"output1": "car",
"output2": "bike"
}
},
"requestId": "21667204885203631"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/splitString?input=car*bike&delimeter=*"

removeHyphens​

You can use this service to remove hyphens from a string. For example, You have a String named str with value "sign-in". The API will return the string value "sign in".

URL:

https://api.rightwave.net/rdn/api/ss/removeHyphens?input={Marketo token for input}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
inputStringInput for removeHyphens

Output:

{
"success": true,
"input": {
"input": "sign-in"
},
"result": {
"output": "sign in"
},
"requestId": "21667197994416144"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/removeHyphens?input=sign-in"

wildcardPatternMatching​

You can use this service to match a string from a pattern.

URL:

https://api.rightwave.net/rdn/api/ss/wildcardPatternMatching?expressions={Marketo token for expressions}&input={Marketo token for input}

Headers:

Key NameValueDescription
auth-key5wt-be28f07942848582b5915443Use for authentication
Content-Typeapplication/jsonHeader for Content-Type

Query Parameters:

Parameter NameData TypeDescription
expressionsStringFirst input for wildcardPatternMatching
inputStringSecond input for wildcardPatternMatching

Output:

{
"success": true,
"input": {
"expressions": "c*t*",
"input": "cater"
},
"result": {
"output": true
},
"requestId": "216669646402641"
}

Example:

curl -X GET \
-H 'Content-Type: application/json' \
-H 'auth-key: 5wt-be28f07942848582b59154453' \
"https://api.rightwave.net/rdn/api/ss/wildcardPatternMatching?expressions=c*t*&input=cater"