Add "replace" helper