pystring provides many string processing functions, such as split and strip. You can follow the python method to process Lua strings
1
Version 1.0-3 of pystring was uploaded 1 year ago. For lua >= 5.1