added checking for space between first and last name