Fix whitespace problems in xblock string field editor.

Whitespace is now trimmed from input. If after trimming input is empty
(pure whitespace or the empty string), the field is not updated.
Merge pull request #4338 from edx/dan-f/display-name-validation

Dan f/display name validation