Today I added the search to the text files too and I started revising the code to optimize it... while I was fixing things I thought to make the program multilingual, so I started transferring all the hardcoded strings into a array which will be overwritten in case of languages other than the native one.
I initially thought of using tags to search for strings dynamically, but I'm afraid of slowing down the entire program which instead needs to be as fast as possible.