I\'m trying to collect user\'s input in a string variable that accepts whitespaces for a specified amount of time.
Since the usual cin >> str does
cin >> str