
ih5uc (ih5uc) asked a question.
I have a Okta workflow which is creating an email address based on certain conditions. Now I want to be able to check if the firstname or the last name has double words and then ignore the empty space and create an email handler.
Eg: Lastname= Test user / Mary Jane the email handler must be testuser@domain.com and not test user@domain.com which is not a recognized email address.
Which action card can help me find the empty space and ignore it to create a loginname?
Thank you.

Hello @ih5uc (ih5uc) Thank you for reaching out to our Community!
Please take a look at the screenshot below, which will provide you with that needs to be done to achieve this:
To help make what Paul performed clear. They added a "space" in look for. Additionally, you could leverage text "Replace Patterns" and utilize regex. I also recommend always running text inputs like this through the gambit of trim+to lower so the data is normalized. "Trim" will remove whitespace/return carriages on the ends of a text input. "To Lower" will change all characters to lower case. So some input like MyNaMeIsTiM will be mynameistim. Essentially, makes working with the strings easier later since there will be consistent formatting.
Here is an example:
Thank you @paul.stiniguta1.508386743840768E12 (Okta, Inc.) and @TimL.58332 (Workflows) for your help. I was able to use Replace Patterns action set and check for spaces in my variable.