Allows single-digit/character ids for documents

regular expression now correctly recognizes single-digit characters for ids and adds specs