Fix str::trim method