Add sanity check on str_wordcount