Replace string with constant