Add possibility to set letter case in toHexString helper function