The answer in How to strip special characters out of string? is not working.
Here is what I got and it gives me an error
func removeSpecialCharsFr
I think that a cleaner solution could be this approach:
extension String { var alphanumeric: String { return self.components(separatedBy: CharacterSet.alphanumerics.inverted).joined().lowercased() } }