auto add "-" in hex mode