This assumes that the user will always enter the search term in lower-case and and will never enter "-" and "_" even if the searched file name actually contains them - in the very least, there should be a clarifying comment. But better yet, maybe just do `searchText.toLowerCase()` and maybe remove the `replaceAll`s here. If you are shooting for this to be something like search in Sublime Text, then you could preprocess searchText by inserting `.*` after each character and using it as a regexp.