fix for "__trim__ Function not available from Envjs.setCookie Method"