Fix load of trim optimizer in ltrim and rtrim.

Signed-off-by: Rack Lin <racklin@gmail.com>