Trim whitespace from input string.

Fixes bug in command-line tool for Parser where an input string comprised of whitespace only will trigger an array index exception in parseLine()
```
   String text = sb.substring(0, sb.length() - 1);
```
because the whitespace won't produce any tokens.

By trimming the input string, it is treated the same as an empty string/blank line.