Skip to main content
1 of 2
l4m2
  • 28.5k
  • 2
  • 25
  • 104

JavaScript (Node.js), 135 bytes

x=>!!x&&(t="Ah, I see you're a Man of Culture as well.".replace(/./g,c=>c>' '?/^(.)\1/i.test(c+x)?(x=x.slice(1).trim(),c):'-':c),!x&&t)

Try it online!

l4m2
  • 28.5k
  • 2
  • 25
  • 104