Cerate user logon names without spaces

When provisioning a user account, its creating the logon name with spaces because the user last name has spaces.

angela.balmaña alvarez

Is there a way we can create the user name as:

angela.balmaña.alvarez

or

angela.balmaña-alvarez

Create an expression that removes the spaces and replaces it with a . character.

The expression would look something like this…

Person.LastName.Replace(" ",".")