fix constant to convert string according to definition.