PHP class to change strings on the files