Safe to replace just some cells in a NiMH battery pack?
Assuming the cells are in series, it is not usually a good idea to mix rechargeable NiMH cells in a stack.  Overcharging is a problem, and different cells will reach their full capacity at different rates.