strip the extra whitespace from artifacts defs