5 cm? Almost 2 inches? If you are correct on the units and didn't mean mm, then I'd be asking a lot of questions of all the doctors and medical staff involved with the replacement.
Was there any advance notice by the doctors that there'd be a big difference in leg length?