Validate id string length