Precise angle measurment sensor

Sounds reasonable, although complicated. How would you compensate for slack and stretching in the string? String fabric is strong, but quite flexible, and likely changes dimensions with age, temperature and humidity.