Elasticsearch: replace spaces in keys with underscore (eg CMS Old Gen ->...

... CMS_Old_Gen).