First, is it "molding" or "moulding" ?

Ok, I bought a topper for my Dodge and it's got some small things to fix. My first item is some 1/2" wide, paint matched rubber-ish trim along the bottom edge of the topper is coming loose, what is the best product to use to glue it back on? The surface under the trim that it sticks to is painted and the trim itself does not touch the truck so there's no stress on it, I think it's just a bumper edge to protect the topper.

Ok, I bought a topper for my Dodge and it's got some small things to fix. My first item is some 1/2" wide, paint matched rubber-ish trim along the bottom edge of the topper is coming loose, what is the best product to use to glue it back on? The surface under the trim that it sticks to is painted and the trim itself does not touch the truck so there's no stress on it, I think it's just a bumper edge to protect the topper.