Basically I am writing a program that will ask the user to input some names and then I will sort the names.
However, right now when I input the characters, it prints out everything, including the empty spaces. How do I put an end of string mark at the end of the line, when the user hits enter