Fixed use of pattern special chars in lume.trim()

Using lua pattern special chars in the `chars` argument of lume.trim()
are now handled correctly and treated like any other character.
Added more tests for lume.trim()
Moved shared code of lume.split/trim() to local func