Refactored parser's length checking code