I am having a problem with jQuery's trim. I have a string such at in jQuery:
var string1; string1 = "one~two~";
How do I trim the trailing tilde?