Why Is Java Program Skipping String Input In Python