Fix broken string trim