Fix application name search regex to handle application name with space like "pgAdmin III - Query Tool".