don't write back to file if no replacement made
version to v0.2.4