HexStr can be called with anything that bas `begin()` and `end()` functions, so clean up the redundant calls.