เรียนรู้แทนที่ character ใดๆ ใน string ด้วย Regular Expressions (RegEx) และเมธอด replace() สมมติ text block ควรใช้ em dash (—) แต่พิมพ์ hyphen (-) ติด: const textBlock = When youre typing fast its normal to make a few spelling mistakes here and there - it just means youre human. แก้ด้วย regex และ