Remove Empty Strings From The End Of A List In Lua

I needed to remove empty strings from the end of a table. This is what I ended up with: