updated code to allow upper and lower case inputs and numbered list