<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Capitalize the First Letter and Lowercase the Rest of a Sentence in Workflows
Okta Classic Engine
Okta Identity Engine
Workflows
Overview

This guide will teach how to capitalize the first character and lowercase the rest of a sentence in Workflows. 

Applies To
  • Okta Workflows
Solution

The following text is considered:
 

  • recipe: Vegetarian Chili With Winter Vegetables


and need to format it as:

 

  • Recipe: vegetarian chili with winter vegetables


The following flow capitalizes the first letter and lowercases the rest of the text:
 

workflows_uppercase_lowercase.png
Capitalize and lowercase flow


The flow does the following:

  1. The Helper Flow card accepts text as input.
  2. The To Upper Case card formats the entire text to upper case (RECIPE: VEGETARIAN CHILI WITH WINTER VEGETABLES).
  3. The At card extracts the first character (R).
  4. The To Lower Case card formats the entire text to lowercase (recipe: vegetarian chili with winter vegetables).
  5. The Text Segment card segments the lowercase text starting at position 1 (ecipe: vegetarian chili with winter vegetables).
  6. The last card, the Concatenate card, combines the first character in upper case with the segment from step 5 in lower case. The final result is Recipe: vegetarian chili with winter vegetables.

Running the flow:
 
Capitalize and lowercase flow execution

 

 

 

Loading
Capitalize the First Letter and Lowercase the Rest of a Sentence in Workflows