fix for parsing errors

Untrimmed lines sometimes caused an error if a space was entered after a
command that accepted an array of values or no values at all