I have the book near my bedside, I’ll have to look at it and see how Doyle wrote it.
In another case I always thought Holmes would have nailed “Irene Adler” when she spoke to him in male dress. A guy as acutely observant as Sherlock Holmes would have picked up chest resonance, gait etc and yanked the disguise off of Adler.
Sherlock Holmes did not like women, but was always a gentleman...................