tool script for replace string in a file.