Changed input stream to getline. Takes whole line now.