Deleted parseReg and implemeted parseAddr for empty string and one-char string