Adjust RefString to env changes