search-replace multi step plan of action