title: There are extra whitespaces produced by `echo` command
body: <blockquote>
    <p>environment: macOS 10.14</p>
    
    <p>shell: zsh</p>
  </blockquote>
  
  <p>There are some lines of code from the book 'The Linux Command Line'</p>
  
  <pre><code>#!/bin/bash
  while [[ -n $1 ]]; do
          if [[ -r $1 ]]; then
                  max_word=
                  max_len=0
                  for i in $(strings $1); do
                          len=$(echo $i | wc -c)
                          if (( len &gt; max_len )); then
                                  max_len=$len
                                  max_word=$i
                          fi
                  done
                  echo "$1: '$max_word' ($max_len characters)"
          fi
          shift
  done
  </code></pre>
  
  <p>I ran the code with the command</p>
  
  <pre><code>hello hello
  </code></pre>
  
  <p><code>hello</code> is the file which contains the code and is executable. The program is simple. However, the output is:</p>
  
  <pre><code>hello: 'max_len=$len' (      13 characters)
  </code></pre>
  
  <p>You can see some extra whitespace after left <code>(</code>. I don't know why and didn't get any solution through google.</p>