use iswspace()/iswpunct() to find word delimiters