I have a copy of the marriage record of ancestors marrying in Newlands, Peebles

One of the places mentioned looks like Qualkquain or Dualkquain - I tried to make it into Traquair as this was the only place nearby I could find with a q in it but I don't think it is. It says this place is in the parish of what looks like "Libertown." I just can't work it out.

Any clues anyone? thank you.