the good&old search and replace script for doc