next() family of functions read up to the next space. So if your full name is made up of first + last name, only the first will be read, last name remains in the buffer until the following next()...