Hi Enzo,
I would use a regex in a combination with toLowerCase for this
toLowerCase(replaceAll($Name,'\W++',''))
where $Name is the attribute that you want to sanitize and '\W++' matches one or more non-word characters. For more information see https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
Hope this helps,
Andrej