Save extracted text across attempts and return the longest one when all attempts fail, and add a test case from hukumusume