Also, the `trim` functions do not work this way. Trim treats the second argument as a "charlist", not a whole string. You could potentially trim off more than just the ".cloudfront.net" suffix. Consider using `substr` instead.