replace strings with existing constants