Added function for replace in files