Fix load of trim optimizer in ltrim and rtrim.

Signed-off-by: Rack Lin <racklin@gmail.com>
Merge pull request #94 from racklin/bugfix/trim_load

Fix load of trim optimizer in ltrim and rtrim.