I have some string which is being created programmatically as part of a GitHub action. The contents of the string are coming from an API so I don't know how long each part of the string will be. I then need to tweet the string using Twitter.jl. However, right now it errors out sometimes since the string is too long (twitter has a 280 character limit).
How can I check the length of the string in Julia to make sure it is less than 280 characters?