DocumentScanner amended to work with CaseInsensitive