constructs sentences by concatenating user input until the user enters one of the termination characters