D:\>perl -ne "s%^\s+%%g; s%\s+$%%g; s% +% %g; s%\"%%g; print $_" test1.txt > test1.neu