setting global replace fix, custom replace example