Why Is Java Program Skipping String Input With Space