As of right now my code works with only one word not with a sentence. Thus I was wondering if there was some way to make my string continue take in letters/words even after spaces until they hit enter?
Instead of using the extraction operator think about using getline(). The extraction operator stops processing the string when it encounters a whitespace character.