s/(?:^\s+)|(?:\s+$)//g [download]
In reply to Re^3: removing the white spaces by codeacrobat in thread removing the white spaces by Anonymous Monk