Trim category name before validation.
Merge pull request #1415 from wordpress-mobile/issues/1379-trim-cat-name

Trim category name before validation.