slight code changes and added regex expression check for names with no numbers