Trim trailing spaces.
Fix "echo" command.

`echo.` is used to echo an empty line.