Simplifiy read_identifier and read_number with lambdas