now also handles lower case input