Added trim polyfill in thoth