change function name
compact check for valid hex character