Replace value with constant