Added method to generate a parsable string from a metric, as well as create a metric from a parsable string