Replace string values with constants