Would it help to make a model?
What happens to the string when part of it is stopped by the shed?