Fixed typo in possible argument of `trim` function

For trim function argument `'back` does not work, but `'end` does.