Doc: Clears up trim_char doc

Closes #18451
Maybe "beginning and the end" would be better?