Deal with strict text and lazy text correctly