This algorithm will match name-formatted strings to a minimum accuracy of 3 correct characters per value.
Firstname Lastname
will match any of the following:
First Last
fname lname
fame lame
nameF nameL
fam meal
man men
As is illustrated above, the presented algorithm is very lazy with its matches.
It can easily be altered to have stricter or more nuanced matching conditions. Breaking the name-formatted string down into individual parts allows for greater specificity within regex matches, and allows for handling of obscure of unusual errors and/or typos.
Have fun!