write string:split function in toy