Added 0 argument to getopt
Fix reuse of stringstream