fix the TrimLeft bug