I'm using \begin{thebibliography} in my bachelor thesis. It works well, but however I need to change the title of the bibliography. I found the solution that says that it should be possible with \renewcommand{\refname}{New Title}.
However, when I'm trying to use it, for some reason Latex reads \refname as \ref and name is not readed as a command.
Hopefully the picture below helps to understand what I tried to say.
So, my question is: Why? Does \refname need some package? Or is there some trick that forces compiler to read the whole \refname command.
Thanks in advance!

\refit presumably is. Check that you do not have an invisible control character between thefand then– David Carlisle Apr 24 '20 at 12:07\refnameas\ref, and not just your editor? Which editor are you using? How do you know that LaTeX is reading that as\ref? – Teepeemm Apr 24 '20 at 12:24