parse the given line into command with doctest written
kv_server parse the command that client sent and response