Remove "http://" and trim "/" to pretty-fy empty $title in anchor func