What is a good way to strip out punctuation and spaces from a string? For Example...
name1 = "John J. Van North"
name2 = "John J VanNorth"
I want to be able to strip out the spaces and any punctuation so that I can tell that both these names are the same. I am trying to eliminate dups.
Kaye
name1 = "John J. Van North"
name2 = "John J VanNorth"
I want to be able to strip out the spaces and any punctuation so that I can tell that both these names are the same. I am trying to eliminate dups.
Kaye