Boundary-value problems for the string equation, the Poncelet problem, and the Pell-Abel equation: Links and relations