Refactoring
Modify to accepting CR delimiter for commamd termination character