Been there, done that. Search and replace can be VERY dangerous. The trick is always to tick the box 'Whole words only' so that the same characters aren't replaced mid-word. Not that this would have helped in the instance above...