Clean metric and tag values