refactor `scan_ident` with length checks
Merge pull request #53 from yorkie/master

refactor `scan_ident` with length checks