Search backwards works for replace