Replace string ids by static constants