- QA: API documentation
- Change endless loop detection to be based on the input string length