Changed comparator and make hostname const