Parse commands from socket; allow changing tag string