I'd like to see a generic "white space trim" in that case, not specifying the "optional characters". For any more complicated set of characters, regular expressions can be used (Text extension).