extract constant for string values