Search for content in a file and replace it