Changed input collection to getline so that spaces will be collected