Zoho Trusted Partner in Digital Transformation
text_variable = "Hello World";
string_length = len(text_variable);
// Returns: 11
full_text = "Zoho Creator";
// Extract from position 5 to 11
result = substring(full_text, 5, 11);
// Returns: "Creator"
// Extract from position 0 to 4
result2 = substring(full_text, 0, 4);
// Returns: "Zoho"
text = "Zoho Creator is powerful";
position = indexOf(text, "Creator");
// Returns: 5
// Case-sensitive search
position2 = indexOf(text, "creator");
// Returns: -1 (not found)
original = "Hello World";
new_text = replace(original, "World", "Creator");
// Returns: "Hello Creator"
// Replace all occurrences
text = "test test test";
result = replace(text, "test", "demo");
// Returns: "demo demo demo"
messy_text = " Hello World ";
clean_text = trim(messy_text);
// Returns: "Hello World"
// Also removes tabs and newlines
complex_text = "\t\n Zoho \n\t";
cleaned = trim(complex_text);
// Returns: "Zoho"
first_name = "John";
last_name = "Smith";
full_name = concat(first_name, " ", last_name);
// Returns: "John Smith"
// Alternative using + operator
full_name2 = first_name + " " + last_name;
// Returns: "John Smith"
csv_data = "apple,banana,orange";
fruit_list = split(csv_data, ",");
// Returns: ["apple", "banana", "orange"]
// Access individual elements
first_fruit = fruit_list.get(0);
// Returns: "apple"
text = "Zoho Creator";
upper_text = toUpperCase(text);
// Returns: "ZOHO CREATOR"
lower_text = toLowerCase(text);
// Returns: "zoho creator"
email = "user@zoho.com";
is_zoho = contains(email, "zoho");
// Returns: true
// Case-sensitive
is_ZOHO = contains(email, "ZOHO");
// Returns: false
filename = "report.pdf";
is_pdf = endsWith(filename, ".pdf");
// Returns: true
url = "https://zoho.com";
is_secure = startsWith(url, "https");
// Returns: true
email_input = input.Email;
if(len(email_input) > 0 && contains(email_input, "@")) {
at_position = indexOf(email_input, "@");
domain = substring(email_input, at_position + 1, len(email_input));
if(contains(domain, ".")) {
// Valid email format
info "Valid email: " + email_input;
}
}
full_name = trim(input.Full_Name);
if(len(full_name) > 0) {
name_parts = split(full_name, " ");
first_name = name_parts.get(0);
if(name_parts.size() > 1) {
last_name = name_parts.get(name_parts.size() - 1);
}
// Capitalize first letters
formatted_first = toUpperCase(substring(first_name, 0, 1)) + toLowerCase(substring(first_name, 1, len(first_name)));
}
Ready to implement these string functions in your Creator applications? When you're ready to build powerful text processing workflows, you can get started with Zoho Creator's advanced development platform, where you'll have access to the complete Deluge scripting environment.
Need custom string processing solutions or advanced Deluge development?
creatorscripts@zoho.com | 8444552263
⭐ Proud Winner of Zoho Creator's Tech Star in Healthcare ⭐
Trusted by Businesses Worldwide
This email was sent automatically with Creator Scripts
© 2025 Creator Scripts - Zoho Trusted Partner in Digital Transformation