Improving replacement on resources files.