Improving trim/ltrim/rtrim supports charlist parameter .

Improving internal trim support 2 parameter.

Refactoring Rtrim/Ltrim Optimizers.


Signed-off-by: Rack Lin <racklin@gmail.com>