Add replace

Add replace function to search extension