strip commandline string before interpretation

fix #643
Merge branch '0.3.5-fix-643'