This completely depends on the site, how quickly Google recrawls the homepage, processes the changes, etc. It’s important to have patience. It can take days, or longer, for the correct site name to appear in the search results. Also, Google might keep the current site name if it’s algorithms believe that site name is correct.