Loop through the characters read till you find <person as the characters.