Add possibility to set letter case in toHexString helper function

In some cases is useful to have a hexString in lower letter case