Reference

Class

RiTa

Name

RiTa.trimPunctuation

Description Trims punctuation from both ends the input string (does not trim whitespace or internal punctuation)
Syntax
RiTa.trimPunctuation(text);
Parameters
Stringtext input
Returns
Stringresult
Example
RiTa.trimPunctuation("Please @ me!"); // returns -> Please @ me
Platform Java / Javascript