Added support for case insensitive matching

Current restriction is that all output will be lower case.