you should use "quit".equals(input)

Regards,
Chris