Simplify TrimWhiteSpace operation.