add function to cut str by words