function to process first and last names