trimws check for binary files and confirm