Please don't do this. Just parse the yaml and work with the data structure.