Bad: Calls AString::length() on each iteration.
Better: Store a_Input.length() into a variable, then compare to that variable.