added capitalization insensitivity to lexicon scan