When replacing a hose choose the same length as original or a shorter hose if desired. Each valve in a home is designed with one hose length in mind and a longer hose will most likely not go in all the way due how the pipe elbows are plumbed.
However, a longer hose may fit just fine. To figure that out, buy the longer hose and see how far it goes into the system. If all but five feet go in then simply pull the hose completely out a cut five feet from the end. Cut the hose and the sock (make the hose sock a little longer than the hose) and reattach the white insertion end.
HAH hose socks are also available for replacement.