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