function string.split(str, find, tbl) split = tbl or {} local p = 0 local continue = true while continue do word = string.sub(str,p,string.find(str,find,p+1,-1)) table.insert(split,word) if string.find(str,find,p) then str = string.sub(str,p) p = string.find(str,find,p) continue = true p = p + 1 else continue = false end end return split end function strip_symbols(str) local symbol_table = "'~()!?:>