th05/main: Identify end-of-stage strings