added a function for parsing " or ' delimiter in command.