Hi Yoda...
There are definately leading spaces and could be a trailing space as well.
Also newline(s) may be part of the result...
Last login: Fri May 3 08:01:47 on ttys000
Barrys-MacBook-Pro:~ barrywalker$ wc -c < SCOPE.GIF
17424
Barrys-MacBook-Pro:~ barrywalker$
EDIT:
Last login: Fri May 3 08:01:47 on ttys000
Barrys-MacBook-Pro:~ barrywalker$ wc -c < SCOPE.GIF
17424
Barrys-MacBook-Pro:~ barrywalker$ wc -c < SCOPE.GIF > length.txt
Barrys-MacBook-Pro:~ barrywalker$ ls -l len*
-rw-r--r-- 1 barrywalker staff 9 3 May 08:15 length.txt
Barrys-MacBook-Pro:~ barrywalker$ hexdump -C length.txt
00000000 20 20 20 31 37 34 32 34 0a | 17424.|
00000009
Barrys-MacBook-Pro:~ barrywalker$
There as a proof test...