What type of string lasts in strong UV and pool environment?
Nylon and polyester are typically considered the most UV-resistant rope materials.  However, neither do particularly well with Chlorine. Polypropylene is better with Chlorine, but degrades in sunlight. It has the benefit of flotation, so it's widely used in pool applications. You may need to replace it annually.