replacing words using list<> and streamreader and streamwriter