Extracting constant strings in Constant class