Implement string trim for older IEs