The prevalence of copy/paste operations with known issues involving whitespace and control characters both leading and trailing the input string implies that Compass should validate both database and collection names when those are created. Ideally, Compass displays a additional, unexpected confirmation dialog warning the user about the possible problem. The default input focus on this dialog is "Cancel".
- Warning: The collection name you gave ends in whitespace/tab. Please confirm this is the correct name for the new collection.
- Warning: The database name you gave begins with whitespace/tab. Please confirm this is the correct name for the new collection.