Replace spaces in anchors with '-'