$ luarocks install ltext
ltext is a compilation of useful functions from lua-users
and others to manage strings. It includes functions such
as trim, split, case-change functions, and decorator
functions. It depends optionally on ansicolors and inspect
although it is not necessary. This package does not depend
on them.