Getting rid of the new line when reading from console.