added *_chars functions to trim specified characters