fixing string trim under chrome