strip whitespace from the beginning and end of the display name to avoid empty display names