myStr:=StringReplace(myStr, chr(13)+chr(10), '', [rfReplaceAll]);//删除回车
myStr:=StringReplace(myStr, ' ', '', [rfReplaceAll]);//删除空格
myStr:=StringReplace(myStr, chr(9), '', [rfReplaceAll]);//删除Tab
http://blog.sina.com.cn/s/blog_9e2e840501018sn6.html