Simplified replace().