Utility method for reading files & performing replacements
CLEAN UP