Here is the output of the script when you run it john : Did not match Paul : Matched marie : Did not match