WP-3401: Use trim to strip just spaces.