Omitted the check for no comma and found an error in final print statement