make the file text comparison better to account for garbage in files