Maybe rather than editing the code with the string and replacement string, it can accept them from the command line?