An alternate approach, to strip away leading/trailing spaces at paragraph boundaries without affecting spacing within a paragraph, is to run two Find/Replace procedures - one to replace para markers preceded by spaces with just the para marker, and one to replace para markers followed by spaces with just the para marker. To do this:
. Begin your Find/Replace procedure (eg via Ctrl-H).
. Type a single space followed by '^p' in the Find box
. Type '^p' in the Replace box.
. Execute the process. You may want to do this more than once, until Word reports no replacements.
. Type '^p' followed by in a single space the Find box.
. Execute the process. Again, you may want to do this more than once, until Word reports no replacements.
The same approach can be used for clearing out unwanted spaces before/after tabs (using '^t) and soft returns (using ^l).
Cheers