Trim script