trfn: tolower() is unnecessary in hexval()