Adds function to remove and replace chars. And count length of file.