Added support for lowercase input.
As well I've added a while loop in case the user entered
an invalid input