Fixed a bug that caused filename input filtering to be case-sensitive.

Fixed a bug that caused filename input filtering to be case-sensitive.