This is the replacement function:
newCard.message = newCard.message.replace(/./g,"-STOP-")
Read the rest of the code on Github.
Here are some screenshots. This is the empty form:
This is the form filled out:
And here is the result: