That feature is not currently available in PAM. PAM does strip whitespace on its own when storing the results, but not in the web service call.
Someone already posted an idea on this so I would encourage you to vote for this idea so that it will be considered in a future release. Here is a link to the idea:
SOAP Strip Whitespace