support key_names including spaces

When key_names includes space like `name, value, attr`, fail to parse key names.