This is a bowdlerism!
That is to use a similar, nonsense word in place of an offensive word.
"God-damnit" -> "Gosh-darnit"
"Oh my God" -> "Oh my Gosh"
"Fuck" -> "Freak", "Frack", or in this case "Frap"
"Shit" -> "Shh", "Sheep", "Ship", "This"
There's lots of examples, and you can probably come up with your own.
My fiancee, for example, always says "Gosh" and "Ship" instead of other words.